Skip to Main Content
Return to Navigation

Loop

These are the actions associated with the Loop step type.

Do

Description

Executes the steps between the Loop.Do step and the Loop.End_Loop until a Loop.Exit step is encountered.

Example

Image: Example of a Loop.Do construct

This example illustrates a Loop.Do construct.

Example of a Loop.Do construct

End_Loop

Description

Terminates a Loop.Do or Loop.While construct.

Exit

Description

Exits a Loop.For or Loop.While construct. Execution continues with the step following the End_Loop step. Typically, a Loop.Exit step is placed within a conditional construct.

While

Description

Executes the steps between the Loop.While step and the Loop.End_Loop while the expression in the Recognition field evaluates to True.

When the expression evaluates to false, flow skips to the step following the End_Loop step.

Example

Image: Example of Loop.While

This example illustrates a Loop.While construct.

Example of Loop.While

For

Syntax

&variable=begin_value to end_value;

Description

Executes the steps between the Loop.For step and the Loop.Next step until the expression in the Recognition field evaluates to False, then flow skips to the step following the Loop.Next step.

Parameters

&variable

The variable to be used in the comparison. This variable is incremented in the Loop.Next step.

begin_value

The starting value.

end_value

The ending value.

Next

Description

Terminates a Loop.For construct. Loop.Next increments the variable in the Loop.For step.

See Add.

Example

Image: Example of a Loop.For Construct

This example illustrates using the Loop For with Loop Next to terminate the loop.

Example of a Loop.For Construct