FOREACH(<iterator>)
- Category
- Control Flow
- Added in
- v0.9
Runs a loop over the specified iterator.
Needs to be closed with NEXT
.
The iterator can either be one of the these or an array.
The loop can be exited early by using BREAK
.
Alternative Syntax:
FOREACH(<&array[]>,<&content>,[#index])
FOREACH(<&array[]> as <&content>)
FOREACH(<&array[]> as <#index> => <&content>)
Actions
Name
Description
NEXT
Completes a for or foreach loop
BREAK
Interrupts exection of the innermost loop