Tcl Special Characters
The # character is used to skip lines and insert comments. This can be used both from within tkcon as well as from within a Tcl script.
#These two lines are comments and are not executed.
#puts $x_expression;
Many times you need to include quotes, braces, and square brackets in variables. Normally,
Tcl attempts to process these variables as Tcl
syntax. However, you can "escape" these variables by placing a backslash \ immediately
preceding
them:
set x_expression "p1w1c1.x[0:10:0.1]";
invalid command name "0:10:0.1"
set x_expression "p1w1c1.x\[0:10:0.1\]";
puts $x_expression;
p1w1x1.x[0:10:0.01]