BlocksCompare & Conditions
Basic Conditional Compare
Compare two values and branch your flow based on the result.
The Basic Conditional Compare block allows you to evaluate a base value against multiple child conditions. It executes the first matching branch or a fallback "Else" branch if no conditions are met.
Configuration
| Field | Required | Description |
|---|---|---|
| Base Value | ✅ | The initial value that will be compared against each child condition. Supports variables like {variable_name} or {request.body.field}. |
Comparison Conditions
To define comparison logic, add Compare Value child blocks. Each child block supports:
| Field | Required | Description |
|---|---|---|
| Compare Value | ✅ | The value to compare with the Base Value. |
| Ignore Case | — | When enabled, alphabetical comparisons will be case-insensitive. |
| Comparison Type | ✅ | The operation to perform. Options: Equal To, Not Equal To, Less Than, Greater Than, Contains, Does Not Contain, Starts With, Does Not Start With, Matches Regex, Does Not Match Regex. |
Else Branch
The Else branch executes automatically if none of the comparison conditions are met. This ensures your flow always has a fallback path.
Error Handling
MISSING_BASE_VALUE— Triggered when no Base Value is provided for comparison.COMPARE_EXECUTION_ERROR— Triggered if an unexpected error occurs during comparison.
Example
- Set Base Value to
{request.query.status}. - Add a Compare Value child block:
- Compare Value:
active - Comparison Type:
Equal To
- Compare Value:
- Add another Compare Value child block:
- Compare Value:
pending - Comparison Type:
Equal To
- Compare Value:
- The Else branch handles all other unsupported statuses.
If the user visits with ?status=active, the first branch will execute.
