Conditional steps branch Flow execution based on conditions, letting you build if/else logic and route data through different paths.
Conditions use JavaScript expressions. Reference variables with {{variable}} syntax:
Supported operators:
==, !=, <, >, <=, >= — Comparison&&, || — Logical AND/OR! — NegationIf true: Use AI response. Else: Route to human review.
If true: Priority support Flow. Else: Standard support Flow.
If true: Error handling. Else: Process response.
If true: Require approval. Else: Auto-approve.
Use quotes for string values:
Test if a value exists:
Add conditional steps inside if/else branches for complex logic:
Use a Return step in a conditional branch to exit the Flow early:
Keep conditions simple. If you need complex logic, use a transform-data step to calculate a boolean, then reference that in the conditional.
Steps inside conditional branches set their outputVariable in the same Flow-level scope. Reference them by their outputVariable name in later steps:
Run your Flow with inputs that trigger both branches: