Switch

Read with AI
All docs in one file (llms-full.txt)
SignalSwitch #Operation #Node
Switch

Uses Index to pick one of the four inputs A / B / C / D and feeds it to Selected.

  • Index is treated as floored (rounded down), with out-of-range values rounded to the ends (-5 gives A, 99 gives D). Plugging a Counter output straight in causes no trouble
  • Index and A-D accept values typed directly next to the port. Constant values for unconnected ports are also saved in the project
  • The node shows a mini bar indicating the current output value

The output is sent every frame. It keeps feeding Selected even when the value has not changed, so be careful when placing downstream nodes that expect “only on change”.

Input ports

Port IDType
Indexfloat

Output ports

Port IDType
CurrentIndexint
Countint

Scriptable members

PathType
indexInputfloat

Synapse Apps (scripting)

await synapse.modules.create({ type: "SignalSwitch" })

Pages linking here

Also referenced from