Logic
Route a run to the first matching set of conditions.
Switch lets you create cases with conditional logic, checks them as an ordered list, and follows exactly one branch. It stops at the first match; if none match, it uses Default.
Use Switch instead of stacking several conditions when one value can lead to three or more outcomes, such as plan tier, region, or API status.

Add cases in the order they should be tested.
| Setting | What it controls |
|---|---|
| Label | Name shown on the case’s branch. A blank label falls back to Case N. |
| Conditions | Flow tag or literal comparisons for that case. Each case may require all rules or any rule. |
| Default | Permanent fallback used when no case matches. |
Each case has its own branch. Only the chosen branch runs.
| Output | Meaning |
|---|---|
matched |
Internal branch ID, such as case_0 or default. |
matched_case |
Matching label, or Case N; null on Default. |
Route a webhook by its status field: add cases labeled Paid, Pending, and Failed, comparing the body status flow tag with paid, pending, and failed respectively. Connect each case to its own review email, and connect Default to a review email for unexpected statuses.
