Skip to main content

FieldLogs

Loop
Loop.png

A Loop allows the user to repeat a set of Steps several times.

To create a Loop:

  1. Click or drag the Loop element from the element panel.

    Loop1.png
  2. Follow the steps listed in Adding Steps . The Loop below allows the user to input data for the two child Steps multiple times.

    Loop2.png

Ensure the Loop is set up as detailed in Setting Up a Step.

A Loop has additional options listed below:

  1. Validation action name

  2. Options related to Loop iterations

    1. Validate iteration

    2. Last iteration

    3. Number of iterations

The user needs to validate the Loop. In the Step Information Editor, you can customize the text displayed to the user by setting up the field Validation action name .

loopValidationActionName.png

You can set up the iterations in a Loop using the following fields:

  1. Validate iteration : Sets text to be displayed after an iteration.

  2. Last iteration : Sets text to be displayed after the last iteration.

  3. Number of iterations : Sets the number of repetitions.

    By default, this is set to infinite. Uncheck the box and enter the required number of repetitions. 

loopIterationOptions.png

The Loop ( configured above ) has the following options:

  • Validation action name : Mark loop as done

  • Validate iteration: Record next reading

  • Last iteration: All readings taken

  • Number of iterations: 2

At run time, when the Loop is executed, the user sees the following sequence.

  1. The first iteration is completed. The text set in Validate iteration is displayed after the iteration.

    LoopIteration1.png
  2. The last iteration is completed. The text set in Last iteration is displayed after the iteration.

    loopIterationLast.png

    After the last iteration, the user may choose to validate the Loop. The text set in Validation action name is displayed after the last iteration.

    loopValidationAction.png

The execution of the Loop is complete.

loopComplete.png

A Loop can contain any type of Step as a child Step.