Skip to main content

List Iterator

List Iterator

Iterates all strings in a given list and executes those files against a sub flow.

The sub flow must return either 0 or 1 as the output for the loop to succeed. Any other return output from the sub flow will abort the iteration and the failure output of the List Iterator will be called.

  • Output 0 from the sub flow is returned when the sub flow has no more flow elements to call, ie a connection path is left disconnected.
  • Output 1 from the sub flow is called via the Output or Output 1 flow element.

Flow​

This is the sub flow to execute all the files against.

List​

The list of strings to iterate. This list needs to exist in the Variables.

The default list is CurrentList which other flow elements that produce a list of things, will update.


Variables​

  • IterationIndex Passed into the subflow for each item. This represents the zero-based index of the current item being iterated.

  • IterationTotal Passed into the subflow for each item. This represents the total number of items that will be iterated.


Outputs​

  1. Strings have been iterated successfully.

Failure Output​

A return code from the sub flow was unexpected.