EXST Instruction ‘CONTINUE’¶
CONTINUE
is an instruction of the Extended Structured Text (ExST).
The instruction is used inside FOR
, WHILE
and REPEAT
loops in order to jump to the beginning of the next execution of the loop.
Example
FOR Counter:=1 TO 5 BY 1 DO
INT1:=INT1/2;
IF INT1=0 THEN
CONTINUE; (* to provide a division by zero *)
END_IF
Var1:=Var1/INT1; (* executed, if INT1 is not 0 *)
END_FOR;
Erg:=Var1;
See also