aboutsummaryrefslogtreecommitdiff
path: root/pkg/language/doc/next.hlp
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /pkg/language/doc/next.hlp
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/language/doc/next.hlp')
-rw-r--r--pkg/language/doc/next.hlp29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/language/doc/next.hlp b/pkg/language/doc/next.hlp
new file mode 100644
index 00000000..49a8eaa3
--- /dev/null
+++ b/pkg/language/doc/next.hlp
@@ -0,0 +1,29 @@
+.help next Feb86 language
+.ih
+NAME
+next -- start the next iteration of a for or while loop
+.ih
+USAGE
+next
+.ih
+DESCRIPTION
+The \fInext\fR statement begins the next iteration of the loop construct
+in which it is enclosed, without executing any of the statements remaining
+before the end of the loop.
+.ih
+EXAMPLES
+1. Sum the pixels in a two dimensional array. Skip any negative valued pixels.
+
+.nf
+ for (i=1; i <= NCOLS; i+=1) {
+ for (j=1; j <= NLINES; j+=1) {
+ if (pixel[i,j] < 0)
+ next
+ total += pixel[i,j]
+ }
+ }
+.fi
+.ih
+SEE ALSO
+break, while, for
+.endhelp