This chapter describes the Tcl commands that implement control structures:
Control structure in Tcl is achieved with commands, just like everything else. There are looping commands:
for. There are conditional commands:
switch. There is an error handling command:
catch. Finally, there are some commands to fine-tune control structures:
A control structure command often has a command body that is executed later, either conditionally or in a loop. In this case, it is important to group the command body with curly braces to avoid substitutions at the time the control structure ...