X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=doc%2Fflow-control.texi;h=c0931f1bcedca679601d48545da52e0e9f904fab;hb=d1baacabfbff9bfc0178b2dd2ac82c245ba831cf;hp=9f4d41345760ae704f5afb0abd177ebeddabb42b;hpb=65c0ae1b10b813ae602a29d16773ed30213cfaee;p=pspp diff --git a/doc/flow-control.texi b/doc/flow-control.texi index 9f4d413457..c0931f1bce 100644 --- a/doc/flow-control.texi +++ b/doc/flow-control.texi @@ -1,5 +1,5 @@ @c PSPP - a program for statistical analysis. -@c Copyright (C) 2017 Free Software Foundation, Inc. +@c Copyright (C) 2017, 2020 Free Software Foundation, Inc. @c Permission is granted to copy, distribute and/or modify this document @c under the terms of the GNU Free Documentation License, Version 1.3 @c or any later version published by the Free Software Foundation; @@ -122,16 +122,16 @@ variable PRINT would not be substituted into the word PRINTOUT. New variable names used as replacements are not automatically created as variables, but only if used in the code block in a context that -would create them, e.g.@: on a @cmd{NUMERIC} or @cmd{STRING} command +would create them, @i{e.g.}@: on a @cmd{NUMERIC} or @cmd{STRING} command or on the left side of a @cmd{COMPUTE} assignment. Any command may appear within @subcmd{DO REPEAT}, including nested @subcmd{DO REPEAT} commands. If @cmd{INCLUDE} or @cmd{INSERT} appears within @subcmd{DO REPEAT}, the substitutions do not apply to the included file. -If @subcmd{PRINT} is specified on @cmd{END REPEAT}, the commands after substitutions -are made are printed to the listing file, prefixed by a plus sign -(@samp{+}). +If @subcmd{PRINT} is specified on @cmd{END REPEAT}, the commands after +substitutions are made should be printed to the listing file, prefixed +by a plus sign (@samp{+}). This feature is not yet implemented. @node LOOP @section LOOP @@ -149,11 +149,11 @@ termination options are offered. Specify index_var to make that variable count from one value to another by a particular increment. @var{index_var} must be a pre-existing numeric variable. @var{start}, @var{end}, and @var{incr} are numeric expressions -(@pxref{Expressions}.) +(@pxref{Expressions}.) During the first iteration, @var{index_var} is set to the value of @var{start}. During each successive iteration, @var{index_var} is increased by the value of -@var{incr}. If @var{end} > @var{start}, then the loop terminates +@var{incr}. If @var{end} > @var{start}, then the loop terminates when @var{index_var} > @var{end}; otherwise it terminates when @var{index_var} < @var{end}. If @var{incr} is not specified then it defaults to +1 or -1 as appropriate.