Skip to main content

For Each

Iterates over a list and performs an action for each item.

Category: Flow Control & Logic · Group: Flow Control · Activity name: ForEachLoop

The ForEachLoop activity in the designer

Example

for item in items:
WriteLine(item)

Inputs

NameTypeRequiredDefaultDescription
CollectionarrayYes``The list or collection of items to be iterated over during the loop.
Iterator NamestringVariable name to hold the current item in each iteration.
Iterator IndexstringVariable name to hold the current index in each iteration.

Branches

  • tasks