The ForEach Block is essential to evaluate comma seperated lists such as the result of the DIR block. It must furthermore end with an EndEach Block.
Since the Aloaha Workflow Engine supports multiple loops at the same time it is required that each loop has a unique name defined by LoopName
The comma seperated working list has to be defined in LoopCSV. As shown in this example it could be also the content of a variable (for example filled by the DIR Block)
Every loop it saves one value of the comma seperated list in the variable defined in ResultName. This value can then be used inside the loop.
It is essential that the loop closed with ENDEACH