Flow Control Overview
Flow control steps enable conditional logic in your workflows, allowing you to route execution through different paths based on data conditions.When to Use Flow Control
Flow control steps are essential for:- Conditional routing: Send different emails based on user type
- Data validation: Check conditions before executing actions
- Complex logic: Implement multi-path decision trees
- Error handling: Route to different paths based on success/failure
Available Flow Control Steps
True/False Branch
Create binary conditional branches with AND/OR logic for multiple conditions.
Multi-Split Branch
Create multiple conditional branches, each with its own path and conditions.
How Flow Control Works
Flow control steps evaluate conditions based on:- Workflow variables: Data from trigger events or previous steps
- Comparison operators: Equal, not equal, greater than, less than, contains, etc.
- Logical operators: AND/OR for combining multiple conditions
All flow control steps require at least one condition rule. Conditions are evaluated in order, and the first matching condition determines the execution path.
Condition Types
Flow control steps support various condition types:Field Comparisons
Compare workflow variables against:- Static values: Fixed strings, numbers, dates, or booleans
- Dynamic fields: Other workflow variables for relative comparisons
- Relative dates: Dates relative to the current time (e.g., “7 days ago”)
Operators
Available comparison operators depend on the data type: String operators:- Equal, Not Equal, Contains, Not Contains, Starts With, Ends With
- Equal, Not Equal, Greater Than, Less Than, Greater Than or Equal, Less Than or Equal
- Equal, Not Equal, Before, After, On or Before, On or After
Best Practices
Start with Simple Conditions
Start with Simple Conditions
Begin with basic true/false branches before moving to complex multi-split logic. This makes workflows easier to understand and debug.
Use Descriptive Branch Labels
Use Descriptive Branch Labels
In multi-split branches, use clear, descriptive labels for each condition path to make your workflow self-documenting.
Test All Paths
Test All Paths
Ensure you test every possible path in your flow control logic to verify correct behavior under all conditions.