Typed switch
flow.switchCompare a configurable number of same-typed cases in order and emit the first matching route or Default.
Example use
Handle ready, busy and done separately; configure the case count and values, with unmatched values going to Default.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
This node has dynamic parameters or ports. The reference below describes the initial example; after editing, inspect the preview for the current ports.
Data inputs 4
- Match value
valueMatching type inferred from connections Typed value that selects the control-flow output.
RequiredDefault:None- Case 1
case-1Matching type inferred from connections First optional value of the same type.
OptionalDefault:None- Case 2
case-2Matching type inferred from connections Second optional value of the same type.
OptionalDefault:None- Case 3
case-3Matching type inferred from connections Third optional value of the same type.
OptionalDefault:None
Configuration 1
- Case count
caseCountInteger Creates 1–32 stable case inputs and matching execution routes; reducing the count removes out-of-range connections.
OptionalDefault:3- Minimum: 1
- Maximum: 32
Control and error ports
- Input
inInput · Control - An incoming control signal enters this operation.
- Default
defaultOutput · Control - Continue from this result or stage; see the node description for branch conditions.
- Failed
failedOutput · Error - Emitted when the operation fails; connect error handling here.
- case-1
case-1Output · Control - Continue from this result or stage; see the node description for branch conditions.
- case-2
case-2Output · Control - Continue from this result or stage; see the node description for branch conditions.
- case-3
case-3Output · Control - Continue from this result or stage; see the node description for branch conditions.
Version and node identity
Version 1.0.0
sha256:cd9c4e652f85cbb783cca006fc3e240c25a71fe750fc682a0b740ad3e51517dd