Verification of running condition at loop start

The syntax of this loop starts with:

$WHILE <expr>

and always ends with

$ENDWHILE

At the start of every loop pass, the stated parameters are verified. The loop is aborted if the expression <expr> assumes the value range FALSE (-0.5 < expr < 0.5).

Programing Example

prg_example

Verification of running condition at loop start

N90 P1 = 100.0

N100 $WHILE P1 > 0.5      P1 > 0.5 is tested for FALSE at loop start
N110 P1 = P1 – 1.5 YP1    überprüft. The loop is passed until P1
N120 $ENDWHILE            fulfills the abort condition

N130 ...