Skip to main content
A choice step evaluates conditions and routes execution to different branches based on the result.

Configuration

configuration
object

Operators

OperatorDescription
equalsExact match
not_equalsDoes not match
greater_thanNumeric greater than
less_thanNumeric less than
containsString contains substring
not_containsString does not contain substring

Example

{
  "id": "check-order-value",
  "type": "choice",
  "conditions": [
    {
      "field": "{{payload.total_amount}}",
      "operator": "greater_than",
      "value": 10000,
      "next": "high-value-flow"
    },
    {
      "field": "{{payload.total_amount}}",
      "operator": "greater_than",
      "value": 5000,
      "next": "medium-value-flow"
    }
  ],
  "defaultNext": "standard-flow"
}
Conditions are evaluated top to bottom. The first matching condition determines the branch. If none match, defaultNext is used.

Next steps