ReferenceScript nodesUtilities › Flow Control
While Loop
Does body again and again while the Condition is true, then done (a script gives up after 100,000 steps in a tick).
↻While Loop
Loop Body
ConditionCompleted
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Conditioncondition | bool | false | – |
Outputs
| Pin | Type |
|---|---|
Loop Bodybody | what happens next |
Completeddone | what happens next |
In a graph
◆On Scene Start
↻While Loop
Loop Body
ConditionCompleted
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.