CONTINUE


The CONTINUE statement is the complimentary statement to the BREAK statement without arguments.

 

COMMAND SYNTAX

CONTINUE

The statement is used within a loop to skip the remaining code in the current iteration and proceed directly on to the next iteration.

 

NOTES

See also: BREAK, EXIT

The compiler will issue a warning message and ignore the statement if it is found outside an iterative loop such as FOR...NEXT, LOOP...REPEAT.

 

EXAMPLE

FOR I = 1 TO 30
    IF Pattern(I) MATCHES "0N" THEN CONTINUE
    GOSUB ProcessText
NEXT I

The above example will execute the loop 30 times but will only call the subroutine ProcessText when the current array element of Pattern is not a numeric value or null.


jBC