<<

Contents

Search

>>

 

CONTINUE

 

 

Instruction

 

 

Syntax:

CONTINUE

 

Meaning:

CONTINUE finishes he current run of a FOR or WHILE loop. Program execution continues with the instruction ENDLOOP or ENDDO. CONTINUE has the same effect as jumping to the instruction ENDLOOP or ENDDO of the current FOR or WHILE block.

 

CONTINUE is only valid within FOR- and WHILE-loops.

 

With FOR-/WHILE loops that are nested several times CONTINUE always refers to the innermost loop that contains the instruction.

 

Sample:

FOR I% = 1 to 10

       ...

      IF I% > 5 AND H$ = ""

      THEN CONTINUE

      ENDIF

      ...

ENDLOOP

 

See also:

BREAK

FOR

WHILE