Switch
flow.switch Logic v0.1.0 Routes input to one or more named outputs based on ordered conditions.
Ports
| Direction | Port | Label |
|---|---|---|
| Input | input | JSON |
| Output | case-1 | Case 1 |
| Output | default | Default |
Output handles are derived from the Rules config — one handle per rule's `port` name, plus the default port.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Modemode | select | "firstMatch" | Route to the first matching rule, or to every matching rule. firstMatchallMatches |
Default portdefaultPort | string | "default" | Port used when no rule matches. |
Rulesrules | switch-rules | [{"port":"case-1","path":"status","operator":"equals","value":"ready"}] | Checked top-to-bottom; the first (or every, in allMatches) match routes the input to that output. |
This page is generated from the node registry by gen-node-docs.mjs on every
site build — ports, properties, defaults and visibility rules cannot drift from the code.