projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3a66b40
)
Clarify LOOP.
author
Ben Pfaff
<blp@gnu.org>
Mon, 7 Feb 2005 05:49:44 +0000
(
05:49
+0000)
committer
Ben Pfaff
<blp@gnu.org>
Mon, 7 Feb 2005 05:49:44 +0000
(
05:49
+0000)
doc/flow-control.texi
patch
|
blob
|
history
diff --git
a/doc/flow-control.texi
b/doc/flow-control.texi
index 2145033180f2449b1c17b37ea7de0af47c421f02..f1fe00e7a97468fcd7ab2ec36e20950d9afc3fba 100644
(file)
--- a/
doc/flow-control.texi
+++ b/
doc/flow-control.texi
@@
-158,6
+158,12
@@
loop is executed MXLOOPS (@pxref{SET}) times.
@cmd{BREAK} also terminates @cmd{LOOP} execution (@pxref{BREAK}).
@cmd{BREAK} also terminates @cmd{LOOP} execution (@pxref{BREAK}).
+Loop index variables are by default reset to system-missing from one
+case to another, not left, unless a scratch variable is used as index.
+When loops are nested, this is usually undesired behavior, which can
+be corrected with @cmd{LEAVE} (@pxref{LEAVE}) or by using a scratch
+variable as the loop index.
+
When @cmd{LOOP} or @cmd{END LOOP} is specified following @cmd{TEMPORARY}
(@pxref{TEMPORARY}), the @cmd{LAG} function may not be used
(@pxref{LAG}).
When @cmd{LOOP} or @cmd{END LOOP} is specified following @cmd{TEMPORARY}
(@pxref{TEMPORARY}), the @cmd{LAG} function may not be used
(@pxref{LAG}).