Forum OpenACS Q&A: Response to nice little tcl gotcha

Collapse
Posted by David Walker on
funny. I'm the opposite. I like to throw in lots of braces.

You can also do neat stuff like this. The variable bracetest gets evaluated once but the $p that is the contents of that variable gets evaluated for each iteration.
set bracetest "$p"
set p 1
while $bracetest {
	set p 0
}