ReferenceScript nodesUtilities › Flow Control
Switch on Integer
Goes the way of the output numbered as the selection is (counting from Start Index), or Default.
⑂Switch on Integer
Selection0
Start Index0
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Selectionvalue | int | 0 | – |
Start Indexstart | int | 0 | – |
Outputs
None.
The code it becomes
The graph below written as a script would write it.
// On Scene Startswitch (0 - 0) { case 0: { } break; case 1: { } break; case 2: { } break; default: { }}In a graph
◆On Scene Start
⑂Switch on Integer
Selection0
Start Index0
ƒPrint
In TextHello
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.