If
The If step checks whether a value is truthy and stops the automation path when the condition is not met. Use it after a model decision or any earlier step that produces a value you want to treat as a gate.
Configuration​
| Field | Required | Description |
|---|---|---|
| Value | Yes | Value to evaluate. Supports variables. Truthy values include true, yes, 1, and on. |
Input Variables​
The value field usually references an upstream result, such as
{{askAi1.result}}.
Output Variables​
Use the step slug shown on the card. The example below uses if1.
| Variable | Description |
|---|---|
{{if1.result}} | Whether the condition evaluated to true or false. |
Example​
Place an If step after an Ask AI model step and set Value to
{{askAi1.result}}. Add notification steps after it so they run only when the
model decision is true.