Index

next

Prematurely start the next iteration of the innermost loop.

Arguments:
(none)

Example:
The following example potentially observes each of a list of calibrator sources for 1 minute each. If one of the sources is not above the 40 degree elevation limit of the telescope, its iteration of the loop is skipped, and that of the next source is started in its place.
 foreach(Source s) {3c345, 3c273, 0552+398} {
   if($elevation($s) < 40.0) {
     next
   }
   track $s
   until $elapsed >= 1m
 }
Context:
The next statement can be used to avoid deep nesting of if statements. It causes all of the statements that follow it in the innermost enclosing loop to be skipped, and then starts the next iteration of the loop.

Martin Shepherd (9-Oct-1997)