Professional Documents
Culture Documents
To execute Tcl commands, you will be using a convenient text console called Tk
Console.
puts
# texto .
expr # operaionces
Remember to hit enter after each line and take a look at what you get after
each input.
Often, one needs to execute a block of codes for many times. For
this purpose,
Tcl provides an iterated loop similar to the for loop in C. The for
command
in Tcl requires four arguments: an initialization, a test, an increment, and
the
block of code to evaluate. The syntax of the for command is:
For