StableWorkflow node
Branch
Overview
Routes the run down one of several paths — the first case whose condition matches — with an Otherwise path when none does.
Purpose
Handle more than two situations in one place: a different email per plan, different assignees per region, different next steps per order status.
Inputs
- Cases — an ordered list; each case has a label and a condition. Cases are checked top to bottom and the first match wins.
- Otherwise — the path used when no case matches.
Configuration
- Add cases with Add case; removing a case also deletes the steps on its path (you are asked to confirm).
- Order matters: put specific cases before general ones.
Outputs
- Stored output:
{ branch: "0" | "1" | … | "default" }. Nothing is added to results.
Example
Route by order size
Example
Branch Case 1 “Large”: Current record › Total ≥ 1000 → Notification to sales Case 2 “Rush”: Current record › Priority is “rush” → Send email to dispatch Otherwise → Set values (no action)
Errors
- None of its own; conditions with missing references evaluate as false.
Limitations
- Only one path runs per execution, even if several cases would match.
Advanced
- Config:
{ cases: { label?: string; condition: Condition }[] }. Edges carrybranch: "<index>"for cases and"default"for Otherwise.