Skip to main content

EXST Statement: CONTINUE

CONTINUE is an statement of the Extended Structured Text (ExST).

The statement is used inside a FOR loop, WHILE loop, or REPEAT loop in order to jump to the beginning of the next execution of the loop.

Example 77. Example
FOR Counter:=1 TO 5 BY 1 DO

INT1:=INT1/2;

IF INT1=0 THEN

 CONTINUE; (* to avoid a division by zero *)

END_IF

Var1:=Var1/INT1; (* executed, if INT1 is not 0 *)

END_FOR;

Erg:=Var1;