ReferenceScript nodesUtilities › List
For Each Loop with Break
Does Loop Body for each item of a list, first to last, then Completed. Break stops it.
▸For Each Loop with Break
Loop Body
ListItem
BreakIndex
Completed
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Listlist | list | – | – |
Breakbreak | what happens next | – | – |
Outputs
| Pin | Type |
|---|---|
Loop Bodybody | what happens next |
Itemitem | any |
Indexindex | int |
Completeddone | what happens next |
In a graph
◆On Scene Start
▸For Each Loop with Break
Loop Body
ListItem
BreakIndex
Completed
ƒ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.