Name: CONTINUE Shortest: CONT
Family: Command Category: Loop & Flow Control
Description: Use the CONTINUE command to move to the next occurrence of the WHILE loop and run the code.

Syntax

CONTINUE syntax diagram

Example

In the following example, when the code is run, processing returns to line 3 after it completes the CONTINUE command on line 6. The while-block commands in line 8 are not run.

(1) SET VARIABLE v1=0
(2) SET VARIABLE V2=1
(3) WHILE v1 = 0 THEN
(4)   *(while-block commands)
(5)   IF v2 <> 0 THEN
(6)     CONTINUE
(7)   ENDIF
(8)   *(while-block commands)
(9) ENDWHILE