ReferenceScript nodesUtilities › Flow Control
For Loop
Does body once for each whole number from first to last, then done.
↻For Loop
Loop Body
First Index0Index
Last Index9Completed
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
First Indexfirst | int | 0 | – |
Last Indexlast | int | 9 | – |
Outputs
| Pin | Type |
|---|---|
Loop Bodybody | what happens next |
Indexindex | int |
Completeddone | what happens next |
In a graph
◆On Scene Start
↻For Loop
Loop Body
First Index0Index
Last Index9Completed
ƒPrint
In Text
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.