Switch

Passes one of its inputs on, chosen by index.

Outputs

NameTypeDescription
Output[Data Type]The active input, unchanged.

Inputs

NameTypeDescription
Inputslist[Data Type]The inputs to choose between. Connecting to the list adds an input at the end.

Parameters

NameTypeDescription
Data TypeEnumWhat the inputs and the output carry, chosen from all data types ZigZag knows. Changing it removes every input and the connections of the output.
Active InputIntWhich input is passed on, counting from 0, so 0 is Input 0.

The Switch operator passes one of its inputs on unchanged. Use it to pick between sources, such as cameras or scenes, with a single number. An Active Input below 0 or past the last input leaves the output empty.

Removing a connection removes its input, and the inputs after it move up one place. Active Input stays as it is, so it may then point at another input.

See also Gate, Fallback.

Keywords: select, route, multiplexer, choose