ExST instruction CONTINUE

CONTINUE is an Extended Structured Text (ExST) instruction.

Use the instruction in FOR, WHILE and REPEAT loops to trigger a jump to the start of the next loop.

Sample:

FOR nCounter :=1 TO 5 BY 1 DO 
    nInt1:=nInt1/2; 
    IF nInt1=0 THEN 
        CONTINUE; (* to avoid a division by zero *) 
    END_IF 
    nVar1:=nVar1/nInt1; (* executed, if nInt1 is not 0 *) 
END_FOR; 
nRes:=nVar1; 

See also: