You can enter a static value, a Data Table Column (:var{COLUMN_NAME}) or a variable (${variable_name}), if you use a Column Name then the loop will iterate over the data table for each unique value in the Column, see [[Data Table|Data Table#Implicit Iteration]] for more information.

+

You can enter a static value, a Data Table Column (:var{COLUMN_NAME}) or a variable (${variable_name}), if you use a Column Name then the loop will iterate over the data table for each unique value in the Column, see [[Data Table#Implicit Iteration|Implicit Iteration]] for more information.

+

+

The Checkbox "Iterate on duplicate data table values" will process all result sets using [[Data Table#Implicit Iteration|Implicit Iteration]]

=== See Also ===

=== See Also ===

[[While Node|While Node]]

[[While Node|While Node]]

{{FlowControl}}

{{FlowControl}}

Revision as of 05:14, 7 September 2015

Loop Node

In Presence Tasks, as with While Nodes it is impossible to link a Node into an earlier Node in the Execution Path as this leads to infinite recursion.

However looping functionality is often desirable, and the Loop and While Node serves this purpose - it will continue to repeat execution of subsequent Nodes until the number of iterations has been performed. This Node differs from the While Node in that is will only repeat a process n times. It also makes doing iterative loops easier as you don't have to keep your own counter as you would have to with the While Node.

8 Drops any empty rows (first row is always empty in this example) using the Drop Row(s) node.

9 Creates the Sine graph from the Data Table.

10 Ends the Task

This is the product of the task

Loop Node Iteration is faster than the While Node due to no other rules are being evaluated at every iteration.

Using the Loop Node

Drag the "Loop" Task Element from the toolbox onto your Task Edit View. You will then be presented with the following Dialog Box:

You can enter a static value, a Data Table Column (:var{COLUMN_NAME}) or a variable (${variable_name}), if you use a Column Name then the loop will iterate over the data table for each unique value in the Column, see Implicit Iteration for more information.

The Checkbox "Iterate on duplicate data table values" will process all result sets using Implicit Iteration