IRAF help page for package language, program next

from NOAO next -- start the next iteration of a for or while loopUSAGEDESCRIPTIONEXAMPLESSEE ALSO

next -- start the next iteration of a for or while loop


USAGE

next


DESCRIPTION

The next statement begins the next iteration of the loop construct in which it is enclosed, whithout executing any of the statements remaining before the end of the loop.


EXAMPLES

1. Sum the pixels in a two dimensional array. Skip any negative valued pixels.

	for (i=1;  i < NCOLS;  i+=1) {
	    for (j=1;  j < NLINES;  j+=1) {
		if (pixel[i,j] < 0)
		    next
		total += pixel[i,j]
	    }
	}

SEE ALSO

SEE ALSO, break, while, for,


This page automatically generated from the iraf .hlp file. If you would like your local iraf package .hlp files converted into HTML please contact Dave Mills at NOAO.

dmills@noao.edu