ReferenceScript nodesUtilities › Flow Control
Branch
Goes one way when the Condition is true, the other when it's false.
⑂Branch
True
ConditionFalse
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Conditioncondition | bool | true | – |
Outputs
| Pin | Type |
|---|---|
Truetrue | what happens next |
Falsefalse | what happens next |
The code it becomes
The graph below written as a script would write it.
// On Scene Startif (true) {} else {}In a graph
◆On Scene Start
⑂Branch
True
ConditionFalse
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.