FluxyAPIFluxyAPI
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

FieldRequiredDescription
Base ValueThe 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:

FieldRequiredDescription
Compare ValueThe value to compare with the Base Value.
Ignore CaseWhen enabled, alphabetical comparisons will be case-insensitive.
Comparison TypeThe 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

  1. Set Base Value to {request.query.status}.
  2. Add a Compare Value child block:
    • Compare Value: active
    • Comparison Type: Equal To
  3. Add another Compare Value child block:
    • Compare Value: pending
    • Comparison Type: Equal To
  4. The Else branch handles all other unsupported statuses.

If the user visits with ?status=active, the first branch will execute.

On this page