Skip to main content

For Each Action

For Each Action iterates through all the values of a container variable. This action indicates the start of an execution loop that processes each item in a list or collection, one by one. The current item is stored in an iterator variable for use within the loop body.

warning

Never use this action without a corresponding Loop Next Action to close the loop.

Appearance

In Talos, For Each Action appears as a hexagon node with a list icon.

For Each Loop Icon

Properties

As all Actions, For Each Action has a few unique properties that are essential for its functionality.

Common properties

Common properties inherited from Action.

Display NameString
This is the display name of the action.

By customizing this property, you can differentiate between same type of actions.

Action IDString
Indicates the unique ID of this action.

This property is Read only and it is not customizable

DisabledBoolean
If set to true, this action is considered disabled and will not be executed.
InputExpression
Sets the name of the variable to iterate through its items.

See more about Talos Scripting language & Expressions

tip

This property supports expressions. Provide the variable name or expression that resolves to the collection to iterate over.

Examples

Assuming a declared List variable with name fileList.

${fileList}
Iterator VariableString
Sets the name of the variable used to store the loop iteration counter.