Switch

flow.switch Logic v0.1.0

Routes input to one or more named outputs based on ordered conditions.

Ports

DirectionPortLabel
InputinputJSON
Outputcase-1Case 1
OutputdefaultDefault

Output handles are derived from the Rules config — one handle per rule's `port` name, plus the default port.

Properties

PropertyTypeDefaultDescription
Mode
mode
select "firstMatch" Route to the first matching rule, or to every matching rule.
firstMatchallMatches
Default port
defaultPort
string "default" Port used when no rule matches.
Rules
rules
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.