If-Else
The If-Else node splits your workflow into two branches based on a condition. One branch runs when the condition is true, the other when it's false.
How it works
- Add an If-Else node after any node
- Define a condition (e.g.,
{{trigger.body.priority}} === "urgent") - Connect the True output to one set of actions
- Connect the False output to another set of actions
- Only one branch executes per run
Setting up a condition
Click the If-Else node to configure its condition. You can use:
Simple comparisons
| Operator | Meaning | Example |
|---|---|---|
=== | Equals | {{status}} === "active" |
!== | Not equals | {{status}} !== "cancelled" |
> | Greater than | {{amount}} > 100 |
< | Less than | {{score}} < 50 |
contains | Text contains | {{email}} contains "@gmail.com" |
exists | Field is not null/empty | {{phone}} exists |
Multiple conditions
Combine conditions with AND (all must be true) or OR (at least one must be true):
{{priority}} === "urgent" AND {{customer.plan}} === "enterprise"
Common patterns
Route by email domain
Condition: {{trigger.body.email}} contains "@enterprise.com"
True → Assign to enterprise team
False → Assign to standard queue
Handle API errors
Condition: {{http_request.status}} === 200
True → Process the response
False → Send error notification
Filter by amount
Condition: {{stripe.charge.amount}} > 10000
True → Flag for review + notify finance
False → Auto-approve
Warning
Conditions are case-sensitive. "Active" does not equal "active". Use the lowercase transform if you need case-insensitive comparison.
Tip
If you need more than two branches, chain multiple If-Else nodes, or use the Match Pattern node which supports unlimited branches.