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
Afloat
Bfloat
Cfloat
Dfloat

Output ports

Port IDType
Selectedfloat

Scriptable members

PathType
indexInputfloat
inAfloat
inBfloat
inCfloat
inDfloat

Synapse Apps (scripting)

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

Pages linking here

Also referenced from