| |||
| Home > Directives Reference > Assembly control directives > WHILE and WEND | |||
The WHILE directive starts a sequence of instructions
or directives that are to be assembled repeatedly. The sequence
is terminated with a WEND directive.
WHILE logical-expression
code
WEND
where:
logical-expressionis an expression that can evaluate to either {TRUE} or {FALSE} (see Logical expressions).
Use the WHILE directive, together with the WEND directive,
to assemble a sequence of instructions a number of times. The number
of repetitions can be zero.
You can use IF...ENDIF conditions within WHILE...WEND loops.
WHILE...WEND loops can be nested (see Nesting directives).