WHILE...LOOP
Syntax
[DO] WHILEcondition [statements] LOOP
Description
WHILE [...] LOOP will repeat the statements between WHILE and LOOP, while the condition is true. If the condition isn't true when the WHILE statement begins, none of the statements will be run.
The DO is optional in ARMbasic.
Example
WHILE x = 0
x = 1
LOOP
Differences from other BASICs
- Visual BASIC uses the syntax DO WHILE ... LOOP, which is allowed by ARMbasic
- PBASIC also requires the DO
- Some BASICs use WHILE ... WEND