Verification of running condition at loop start ($WHILE)

Syntax:

The WHILE 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 checked for FALSE
N110 P1 = P1 – 1.5 YP1. The loop is passed
N120 $ENDWHILE            until P1 fulfils the abort condition.

N130 ...