Previous Topic: Conditional

Next Topic: Capabilities of Constructs

Iterative

Iterative constructs represent repetitive logic that executes when a specific condition is true. The iterative statement is denoted by REPEAT WHILE and ENDWHILE statements. CA 2E implements the iterative construct as an HLL subroutine. You must define a controlling condition within the iterative loop to determine whether the logic is to be repeated.

Note: The actions within the iterative construct are executed only while the initial condition is true. This may require a preceding action to set the initial condition.

Iterative constructs are denoted by brackets that enclose solid vertical lines.

.=REPEAT WHILE

-Order status is Held ... ... ... ‘-ENDWHILE