2 '\" Copyright (c) 1993-1994 The Regents of the University of California.
3 '\" Copyright (c) 1994-1996 Sun Microsystems, Inc.
5 '\" See the file "license.terms" for information on usage and redistribution
6 '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
8 .TH continue n "" Tcl "Tcl Built-In Commands"
11 '\" Note: do not modify the .SH NAME line immediately below!
13 continue \- Skip to the next iteration of a loop
19 This command is typically invoked inside the body of a looping command
20 such as \fBfor\fR or \fBforeach\fR or \fBwhile\fR.
21 It returns a 4 (\fBTCL_CONTINUE\fR) result code, which causes a continue
23 The exception causes the current script to be aborted
24 out to the innermost containing loop command, which then
25 continues with the next iteration of the loop.
26 Catch exceptions are also handled in a few other situations, such
27 as the \fBcatch\fR command and the outermost scripts of procedure
31 Print a line for each of the integers from 0 to 10 \fIexcept\fR 5:
34 for {set x 0} {$x<10} {incr x} {
42 break(n), for(n), foreach(n), return(n), while(n)
44 continue, iteration, loop