CONTINUE

Restarts a WHILE loop.

Syntax

CONTINUE

Comments

Any IF or CASE statements that are still open when a CONTINUE command is executed are automatically closed off when execution returns to the start of the WHILE loop.

Example

while Salary > 20000
 ... other commands ...
 if var1 = 1
  continue
 else
  ... more commands ...
 endif
 ... still more commands ...
endwhile
... commands after the while loop ...

If var1 is currently set to 1, execution returns to the WHILE command. All commands between CONTINUE and ENDWHILE are ignored, and the "open" IF statement is automatically closed.

 

Related Topics