If-Else Node
Branch execution based on a boolean Jexl expression evaluated against the current workflow state.
If-Else Node
The if-else node evaluates a boolean expression and routes execution to one of two branches.
Configuration Fields
| Field | Type | Description |
|---|---|---|
condition | string | Jexl expression that resolves to a boolean |
Expression Context
The condition is evaluated with Jexl (not raw JavaScript) with these context variables:
| Variable | Value |
|---|---|
input | variables.input — the original trigger payload |
lastOutput | variables.lastOutput — output of the previous node |
variables | All variables set during the current execution |
Output
or
Wiring
Connect the outgoing edge from the if source handle to the node that runs when the condition is true. Connect the else handle to the alternative path. Both handles must be connected for the graph to be valid.
Expression Examples
Jexl uses == and != for equality (not ===). It does not support typeof, template literals, or destructuring. For complex logic, use a Transform node first to reshape the data, then pass the result into the if-else condition.