Skip to end of metadata
Go to start of metadata


How do I get the current index of the StringList/DocumentList/ObjectList in a loop?


There is a special variable on the pipeline called $iteration which will be incremented as the loop operator works up through the list.

Note: there is no need to clean up this pipeline variable, it only exists inside the loop. If you wish it to "survive" after the loop operator you will need to map it to another variable in the pipeline.

  • None