Conditional Flow Control
Evaluate Expression steps don't just validate data — they can control the flow of your workflow by jumping to specific steps based on the result.
How It Works
An Evaluate Expression step has several flow-control options:
| Setting | Description |
|---|---|
| Next step on true | Choose Stop to halt the workflow, or select a later step to jump to |
| Next step on false | Choose Stop to halt the workflow, or select a later step to jump to |
| Stop workflow execution on error | Stop the workflow if the query errors |
Pattern: Conditional Execution
Skip expensive steps when conditions aren't met:
Step 1: "Check if source has new data" (Evaluate Expression)
expression: {{ $response.has_new_data == 1 }}
→ Next step on false: Stop (stop if no new data)
Step 2: "Process new data" (Transfer Data — only runs when there IS new data)
Pattern: Assertion Chain
When you want all assertions to run regardless of individual results (so you get notifications for all failures, not just the first):
Step 1: "Import data" (Transfer Data or Execute Query)
Step 2: "Assertion: uniqueness" (Evaluate Expression)
→ Next step on true: "Assertion: non-null"
→ Next step on false: "Assertion: non-null"
Step 3: "Assertion: non-null" (Evaluate Expression)
→ Next step on true/false: Stop
Both Next step on true and Next step on false point to the same next step, making the chain continue regardless. Each assertion sends its own notification on failure.
Tips
- Use Execute Query steps for in-database operations (CREATE TABLE, UPDATE, etc.) — they don't need an expression or branching logic
- Use Evaluate Expression steps when you need to make a decision based on data
- Set both Next step on true and Next step on false to the same step to always continue the chain
- Set Next step on false to Stop to halt workflows early when a precondition isn't met