For Each

Runs the body once for every item in a collection.

Behaviour

Built-in workflow activity · type id velophex.foreach

Properties#

Input#

Item name#

ItemName · String · Required · Default: item

Name of the loop variable available in the body.

Item type#

ItemType · Type · Required · Default: Object

The type of each item in the collection.

Values#

Values · IEnumerable · Required · Default: Not specified

The expression producing the collection.

Output#

Index#

IndexTarget · Int32 · Optional · Default: Not specified

Int32 variable or argument that receives the zero-based index of the current item.

How it works#

For Each evaluates Values and runs its Body once per item, with the item available under Item name. When Index is set, it receives the item's zero-based index before each iteration. Break and Continue work inside it.

Properties

Input

Output

How it works