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

  1. Add an If-Else node after any node
  2. Define a condition (e.g., {{trigger.body.priority}} === "urgent")
  3. Connect the True output to one set of actions
  4. Connect the False output to another set of actions
  5. Only one branch executes per run

Setting up a condition

Click the If-Else node to configure its condition. You can use:

Simple comparisons

OperatorMeaningExample
===Equals{{status}} === "active"
!==Not equals{{status}} !== "cancelled"
>Greater than{{amount}} > 100
<Less than{{score}} < 50
containsText contains{{email}} contains "@gmail.com"
existsField 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.