forked from Galleondragon/qb64
-
Notifications
You must be signed in to change notification settings - Fork 24
LOOP
Cory Smith edited this page Jun 8, 2022
·
3 revisions
The LOOP statement denotes the end of a DO...LOOP where the program jumps to the beginning of the loop if the optional condition is true.
DO . . . LOOP [{UNTIL|WHILE} condition]
- LOOP indicates the bottom or end of a DO...LOOP block of code.
- Either the DO...LOOP statement or LOOP statement can set a condition to end the loop.
- When a loop uses a LOOP condition, the code inside of it will run at least ONCE.
- FOR...NEXT {counter loop)
- WHILE...WEND (loop)
- UNTIL, WHILE {conditions)
- DO...LOOP, EXIT DO