For Each
Iterates over all records, for the currently selected session, and executes the actions for each record.
Syntax:
foreach
action(s)
end
For each iteration, the next record becomes the current record.
Note: Do not invoke foreach as an action within a foreach
action for the same session. This causes an indefinite loop!