diff options
author | phk <phk@FreeBSD.org> | 1996-06-26 06:06:43 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-06-26 06:06:43 +0000 |
commit | 00febf60093a024ccc629fdfc81e02a40c5f6572 (patch) | |
tree | 4d70f77f44120e6541d1418223baf06562774975 /contrib/tcl/doc/while.n | |
download | FreeBSD-src-00febf60093a024ccc629fdfc81e02a40c5f6572.zip FreeBSD-src-00febf60093a024ccc629fdfc81e02a40c5f6572.tar.gz |
Tcl 7.5, various makefiles will be updated to use these sources as soon
as I get these back down to my machine.
Diffstat (limited to 'contrib/tcl/doc/while.n')
-rw-r--r-- | contrib/tcl/doc/while.n | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/tcl/doc/while.n b/contrib/tcl/doc/while.n new file mode 100644 index 0000000..8703684 --- /dev/null +++ b/contrib/tcl/doc/while.n @@ -0,0 +1,37 @@ +'\" +'\" Copyright (c) 1993 The Regents of the University of California. +'\" Copyright (c) 1994-1996 Sun Microsystems, Inc. +'\" +'\" See the file "license.terms" for information on usage and redistribution +'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. +'\" +'\" SCCS: @(#) while.n 1.6 96/03/25 20:27:35 +'\" +.so man.macros +.TH while n "" Tcl "Tcl Built-In Commands" +.BS +'\" Note: do not modify the .SH NAME line immediately below! +.SH NAME +while \- Execute script repeatedly as long as a condition is met +.SH SYNOPSIS +\fBwhile \fItest body\fR +.BE + +.SH DESCRIPTION +.PP +The \fIwhile\fR command evaluates \fItest\fR as an expression +(in the same way that \fBexpr\fR evaluates its argument). +The value of the expression must a proper boolean +value; if it is a true value +then \fIbody\fR is executed by passing it to the Tcl interpreter. +Once \fIbody\fR has been executed then \fItest\fR is evaluated +again, and the process repeats until eventually \fItest\fR +evaluates to a false boolean value. \fBContinue\fR +commands may be executed inside \fIbody\fR to terminate the current +iteration of the loop, and \fBbreak\fR +commands may be executed inside \fIbody\fR to cause immediate +termination of the \fBwhile\fR command. The \fBwhile\fR command +always returns an empty string. + +.SH KEYWORDS +boolean value, loop, test, while |