loop %var:EXPR% in %list:LIST% — Blocks

loop %var:EXPR% in %list:LIST%
List1.0.0

Description

Iterates over each element in a list.

Allowed Contexts

Root LevelInside Block

Block Variables

var
string
NullableNo

The current element in the list, named by the user (e.g. 'item' in 'loop item in myList'). The type depends on the list being looped over and is accurate at runtime.

Examples

loop item in myList: broadcast item

All Possible Usages (1)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

loop <var> in <list>

Related (List)