Node reference
Switch node: multi-way branching
switch · Updated September 17, 2026
The Switch node checks its cases in order and fires the port of the first one that matches, or default.
When to use it
Routing on a category, such as a verdict of allow, review or block.
Ports
- Inputs
in- Outputs
defaultone port per case
Configuration
- Cases
casesrequired - list
Output
Fires one case port, or default, with its input passed through. Each case you add creates a new output port on the node.
Example
[
{ "port": "allow", "expression": "nodes.review.output.structured.verdict == 'allow'" },
{ "port": "block", "expression": "nodes.review.output.structured.verdict == 'block'" }
]Keep reading
- If node: branch on a conditionThe If node branches a Novalink workflow on an expression, firing its true or false port so only one path runs and the other is skipped.
- AI content moderation workflowModerate user-generated content with a Claude agent that returns a structured verdict, then allow, queue for review, or block it in a visual workflow.
- Building workflows on the canvasHow Novalink workflows are structured: triggers, nodes, ports, data edges and tool edges, branching and merging, and how the executor decides what runs.
Build it on the canvas
Create a free account and run your first workflow in the browser, or run Novalink on your own machine.