Conditional Step

If/then branching based on a condition.

What it does

  • Evaluates a condition and routes the flow down the true or false path.
  • Supports comparisons (equals, not equals, greater/less than), string checks (starts/ends with, contains), emptiness checks, and more.

When to use it

  • To skip, reroute, or handle errors when data meets certain criteria.
  • To guard expensive calls (only proceed when prerequisites are met).

How to configure

  • Build the condition using references (e.g., data.total, steps.check.outputs.status) and literals (numbers, text, true/false).
  • Combine multiple checks with AND/OR, or use NOT to invert.
  • Label the true/false branches clearly so later readers know which path is which.

Typical patterns

  • Stop or reroute if required fields are missing or empty.
  • Send VIP or high-value orders down a special fulfillment path.
  • Only call an external API if inventory is available or a retry flag is set.