Loop

Repeat an action or series of actions for as long as any/all of the defined conditions are TRUE.

  • Each condition consists of a comparison between the value of a variable and another specified value

  • Once the defined condition(s) are no longer TRUE, the wizard exits the loop and moves on

Step 1: Define the conditions

The first step in using the loop command is to define the conditions (i.e., set up comparisons).

  1. Choose whether any or all of the conditions must be true in order for the loop to continue.

  2. For each condition enter the name of the variable whose value you wish to compare with another value.

  3. Select the type of comparison you wish to perform:

    • equals (with options to ignore letter case/use wildcards/allow close match)

    • contains (with option to ignore letter case/allow close match)

    • match regular expression (with option to ignore letter case)

    • is greater than

    • is greater than or equal to

    • is less than

    • is less than or equal to

    • begins with (with option to ignore letter case)

    • ends with (with option to ignore letter case)

    • is empty

    • is defined

  4. Enter the value with which you wish to compare the variable's value (can be entered manually or copied from values stored in variables).

  5. Indicate if you wish to perform a reverse comparison (e.g., variableIS NOT greater than or equal to 0).

  6. Add/remove conditions as required.

Step 2: Define the actions

Upon adding the loop command to your wizard, you will notice that it becomes an empty "container" within the Editor Pane, waiting for you to fill it with instructions:

  1. Enter the action(s) the wizard should take while the defined condition(s) are TRUE:

    • You can do this by dragging the required Advanced Command(s) directly into the container

      Break that loop!

      Under certain conditions, you may want to break and/or restart the loop created by the LOOP container. Make this happen by using the Loop: Break and/or the Loop: Restart command (usually within an If Else command).