Tcl8.6.0/Tk8.6.0 Documentation > Tcl Commands, version 8.6.0

Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

Control Constructs

afterExecute a command after a time delay updateProcess pending events and idle callbacks
breakAbort looping command uplevelExecute a script in a different stack frame
catchEvaluate script and trap exceptional returns vwaitProcess events until a variable is written
continueSkip to the next iteration of a loop whileExecute script repeatedly as long as a condition is met
coroutineCreate and produce values from coroutines yieldCreate and produce values from coroutines
errorGenerate an error yieldtoCreate and produce values from coroutines
evalEvaluate a Tcl script
for'For' loop
foreachIterate over all elements in one or more lists
ifExecute scripts conditionally
returnReturn from a procedure, or set return code of a script
switchEvaluate one of several scripts, depending on a given value
tailcallReplace the current procedure with another command
throwGenerate a machine-readable error
tryTrap and process errors and exceptions
Copyright © 1990-1994 The Regents of the University of California Copyright © 1992-1999 Karl Lehenbauer & Mark Diekhans Copyright © 1992-1999 Karl Lehenbauer and Mark Diekhans Copyright © 1993-1997 Bell Labs Innovations for Lucent Technologies Copyright © 1994-2000 Sun Microsystems, Inc Copyright © 1998 Mark Harrison Copyright © 1998-2000 Ajuba Solutions Copyright © 1998-2000 Scriptics Corporation Copyright © 2001-2004 ActiveState Corporation Copyright © 2001-2005 Kevin B. Kenny <kennykb(at)acm.org> Copyright © 2001-2012 Donal K. Fellows Copyright © 2003 George Petasis <petasis(at)iit.demokritos.gr> Copyright © 2003 Simon Geard Copyright © 2004-2010 Andreas Kupries <andreas_kupries(at)users.sourceforge.net> Copyright © 2006 Miguel Sofer Copyright © 2006-2008 ActiveState Software Inc Copyright © 2006-2008 Joe Mistachkin Copyright © 2008 Pat Thoyts Copyright © 2008 Peter Spjuth <pspjuth(at)users.sourceforge.net> Copyright © 2012 Trevor Davel