CONTINUE statement

Language reference ›› Statements ››
Parent Previous Next

Inside a WHILE, REPEAT, FOR or LOOP control statement, loop continuation may be used with the CONTINUE keyword:



 FOR I := 0 TO 10 DO
   BEGIN
     IF A = 0 THEN
       Continue; // next loop iteration
     // Code not executed if A = 0
   END;


The CONTINUE statement is equivalent to a GOTO to the evaluation of the loop control expression.