Utility node

switch

Pass through one of several inputs (variants, A/B comparisons).

Inputs

Parameters 1

indexint
Default 0Range 0 to …

Which input to pass through (try expressions)

Use it

Add it from the node menu (right-click empty graph space or Tab, then type switch), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"switch","name":"my_switch","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.