CONTINUE Command

CONTINUE — Transfer control to the beginning of a loop structure.

Synopsis

CONTINUE

Introduction

The CONTINUE command terminates processing the current FOR or FOREVER loop iteration and to the beginning of the loop structure. In case of the FOR command, the counter will be raised with the STEP value.

Arguments

None.

Example

. . .
. . .
FOR L-Counter = 1 TO 4 STEP 1
    LET V-status = CALL ProcessOrder
    IF V-status = C-Fault THEN
        CONTINUE
    ENDIF
    CALL FinalizeOrder
ENDFOR
. . .
. . .

Related Commands

BREAK ENDFOR FOR FOREACH FOREVER