Condition Node
Branch your workflow based on data conditions.
Overview
The Condition node allows you to create if/else branches in your workflow. Route data to different paths based on variable values. Supports multiple conditions with AND/OR logic.
Operators
| Operator | Description |
|---|---|
== |
Equals |
!= |
Not equals |
> |
Greater than |
< |
Less than |
>= |
Greater than or equal |
<= |
Less than or equal |
contains |
String contains substring |
startswith |
String starts with |
endswith |
String ends with |
Building Conditions
Each condition consists of:
- Variable - The value to check (e.g.,
{{status}}) - Operator - How to compare
- Value - What to compare against
Multiple Conditions
Combine conditions using logical operators:
| Operator | Description |
|---|---|
AND |
All conditions must be true |
OR |
At least one condition must be true |
ELSE IF Branches
Add multiple ELSE IF branches for complex routing logic:
- Click Add ELSE IF to create a new branch
- Each branch can have its own set of conditions
- Branches are evaluated in order from top to bottom
- The first matching branch is executed
Output Ports
- IF - Executes when conditions are true
- ELSE IF - Additional conditional branches
- ELSE - Executes when no conditions match
Example
IF: {{response.status}} == "success"
→ Process success path
ELSE IF: {{response.status}} == "pending"
→ Wait and retry
ELSE:
→ Handle error