Switch Step

Multi-branch router that picks one path based on a value.

What it does

  • Evaluates one value and sends execution down the first matching case, or a default if nothing matches.
  • Supports match types like equals/not equals, contains, starts/ends with, greater/less than, ranges, in/not-in lists.

When to use it

  • When you have more than two outcomes and want clear, labeled routes.
  • To keep complex routing readable without nesting many Conditionals.

How to configure

  • Choose the value to inspect (for example, data.status, steps.detect.outputs.type).
  • Add cases with a match type and target value; order them from most specific to most general.
  • Optionally set a default branch to catch everything else.

Typical patterns

  • Route by order status (new, fulfilled, canceled), channel/marketplace, file type, or error code.
  • Apply different transformations per country or region.
  • Send failed records to a recovery path while successes continue.