1continue(n) Tcl Built-In Commands continue(n)
2
3
4
5______________________________________________________________________________
6
8 continue - Skip to the next iteration of a loop
9
11 continue
12______________________________________________________________________________
13
15 This command is typically invoked inside the body of a looping command
16 such as for or foreach or while. It returns a 4 (TCL_CONTINUE) result
17 code, which causes a continue exception to occur. The exception causes
18 the current script to be aborted out to the innermost containing loop
19 command, which then continues with the next iteration of the loop.
20 Catch exceptions are also handled in a few other situations, such as
21 the catch command and the outermost scripts of procedure bodies.
22
24 Print a line for each of the integers from 0 to 10 except 5:
25
26 for {set x 0} {$x<10} {incr x} {
27 if {$x == 5} {
28 continue
29 }
30 puts "x is $x"
31 }
32
34 break(n), for(n), foreach(n), return(n), while(n)
35
37 continue, iteration, loop
38
39
40
41Tcl continue(n)