create a loop that tests and changes the value of a counter.
Before entering the loop, the counter is initialized to a value.
decreased) toward a limit value.
counter value is the same as the limit value), control passes out of the
loop and it is not executed again. For example, the following
&IF
&1 = &1 -1
&IF &1 GT
argument was passed to it. If an argument is passed, it is assumed to
be a number that indicates how many times the leop is to execute. Each
time it passes through the loop, the value of &1 is decreased by 1.
next sequential statement.
There are several ways of setting, adjusting, and testing counters.
&READ
Counter values can be increased or decreased by any increment or
decrement that
is with the
in four ways:
times. For example, the statement:
indicates that the three statements following the
to be executed twice.