The CONTINUE statement provides a convenient way to immediately start the next iteration of the enclosing FOR, WHILE, or REPEAT loop.
| Note |
| Note |
For more information on using CONTINUE and other IDL program control statements, see Program Control.
CONTINUE
This example presents one way (not necessarily the best) to print the even numbers between 1 and 10.
FOR I = 1,10 DO BEGIN ; If odd, start next iteration: IF (I AND 1) THEN CONTINUE PRINT, I ENDFOR
Introduced: 5.4