Control Flow
Theif step evaluates a condition and executes either the then or else branch. It is how you model data-dependent logic in your workflows.
Basic If/Then
then steps run. If it fails, the step passes silently (no error).
If/Then/Else
Add anelse block to handle the failure case:
Condition Format
The condition is a three-element array:[value_or_path, operator, expected_value].
Using State Variables
Using JSONPath on Results
Operators
Operator Examples
Nested If Steps
You can nestif steps inside then or else blocks:
Combining with Extract
A common pattern: extract a value, then branch based on it:What’s Next?
- Iterate over arrays with loops
- Compose workflows with workflow chaining