|
IDL Reference Guide: Procedures and Functions |
|
The CONTINUE statement provides a convenient way to immediately start the next iteration of the enclosing FOR, WHILE, or REPEAT loop.
| Note Do not confuse the CONTINUE statement described here with the .CONTINUE executive command. The two constructs are not related, and serve completely different purposes. |
| Note CONTINUE is not allowed within CASE or SWITCH statements. This is in contrast with the C language, which does allow this. |
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.