Logic At Least Component
Use the Logic At Least component to check if a specific minimum number of inputs are true. This provides more flexibility than a simple AND or OR gate, allowing a workflow to proceed if a certain threshold of conditions is met.
Why this matters
Step 1: Set the Minimum Requirement
This is the core setting of the component. You define the minimum number of inputs that must be true for the "Verified" path to be taken.
| Setting | Description |
|---|---|
| Minimum Inputs | Define the minimum number of inputs (from 0 to 9) that must have a true value to trigger the Verified output. |
How Inputs are Evaluated
True: Any input that has a value (e.g., a non-empty string, any number, the booleantrue, an object, an array).False: Any input that is empty,null,undefined, or the booleanfalse.
Step 2: Provide Inputs
You can add multiple inputs to the component, each representing a condition to be checked.
| Action | Description |
|---|---|
| Add Input | Click the + icon to add a new input field. Give it a descriptive name that reflects the condition you are checking. |
Step 3: Handle the Outputs
The component has two output branches, allowing you to direct the workflow based on whether the minimum threshold was met.
| Output | Description |
|---|---|
| Verified | This path executes if at least the specified minimum number of inputs evaluates to true. |
| Unverified | This path executes if the number of true inputs is less than the specified minimum. |
Branching Your Workflow
Best Practices
- Check for Optional Data: Use this component to verify that a user has submitted at least one of several optional pieces of information (e.g., "user provided at least a phone number OR an email address").
- Tallying Approvals: In a workflow that requires multiple approvals, you can use
Logic At Leastto proceed once a minimum number of approvers have responded positively. - Scoring and Thresholds: Use this to check if a set of data meets a minimum quality score. For example, if you run 5 different validation checks, you might decide to proceed if at least 4 of them pass.
- Set Minimum to 1 for an OR Gate: If you set Minimum Inputs to
1, this component behaves exactly like a Logic OR component.
Troubleshooting Tips
If your logic isn't branching as expected...
What to Try Next
- Use this component to check if at least one of several possible contact methods (email, phone, SMS) provided by a user is valid.
- Combine this with a ForEach Loop to process a list of items and then check if at least a certain number of them returned a successful result.
- Chain multiple logic components together, for example, using a
Logic ANDto ensure critical inputs are present, and then aLogic At Leastfor optional ones.