True/False Branch
The True/False Branch step creates a binary conditional path in your workflow. It evaluates one or more conditions and routes execution to either the “True” or “False” path based on the result.Overview
True/False Branch steps are ideal for:- Simple yes/no decisions
- Validating data before proceeding
- Implementing if/else logic
- Creating binary workflows based on conditions
Configuration
When you add a True/False Branch step, you’ll configure:Logical Operator
Choose how multiple conditions are combined:- AND: All conditions must be true for the branch to evaluate as true
- OR: At least one condition must be true for the branch to evaluate as true
The logical operator applies to all conditions in the branch. If you need different logic for different conditions, consider using multiple True/False Branch steps or a Multi-Split Branch.
Conditions
Add one or more condition rules that evaluate workflow data:Field
Select the workflow variable to evaluate. Available fields include:- Variables from trigger events
- Output from previous steps
- System variables (like
event.timestamp)
Operator
Choose the comparison operator based on the field type: String fields:Equal- Exact matchNot Equal- Not an exact matchContains- Field contains the valueNot Contains- Field does not contain the valueStarts With- Field starts with the valueEnds With- Field ends with the value
Equal- Values are equalNot Equal- Values are not equalGreater Than- Field is greater than valueLess Than- Field is less than valueGreater Than or Equal- Field is greater than or equal to valueLess Than or Equal- Field is less than or equal to value
Equal- Dates are equalNot Equal- Dates are not equalBefore- Field date is before valueAfter- Field date is after valueOn or Before- Field date is on or before valueOn or After- Field date is on or after value
Comparison Target
Specify what to compare the field against: Static Value:- Enter a fixed value (string, number, date, or boolean)
- For dates, you can use date pickers or relative dates
- Compare against another workflow variable
- Useful for relative comparisons (e.g.,
user.age > user.minimumAge)
- Compare dates relative to the current time
- Options like “7 days ago”, “1 month from now”, etc.
Execution Flow
When a True/False Branch executes:- All conditions are evaluated based on the logical operator
- If the result is true, execution follows the “True” path
- If the result is false, execution follows the “False” path
Example Use Cases
User Type Routing
Route users based on their subscription type:Data Validation
Validate data before processing:Date-Based Logic
Route based on dates:Best Practices
Use AND for Validation
Use AND for Validation
Use AND logic when you need all conditions to be true (e.g., validating that required fields are present).
Use OR for Alternatives
Use OR for Alternatives
Use OR logic when any of several conditions should trigger the true path (e.g., checking if a user belongs to any of several groups).
Keep Conditions Simple
Keep Conditions Simple
If you find yourself creating very complex condition logic, consider breaking it into multiple True/False Branch steps for better readability.
Test Both Paths
Test Both Paths
Always test both the true and false paths to ensure your workflow behaves correctly in all scenarios.