Please enable JavaScript to view this site.

InterFormNG Manual 2020

The Repeat element looks like this:

 

InterFormNG_Repeat_element_001

 

Use the repeat element to execute a sub tree of elements a (specific) number of times. This number can be a fixed number or e.g. a number found via an Xpath expression. The number to run can be set as seen below:

 

InterFormNG_Repeat_element_002

 

XML file:

InterFormNG_Repeat_element_003

 

In the example above the number of runs is determined by a number which is found in the XML file. As the number found is 3, the repeat loop is run 3 times. The number of repetitions can also be set to a constant, variable, function and even a value found in a translation table.

 

Another similar loop element is ForEach, that can span a set of XML nodes.