quick tcl question: multiple conditions for a while loop?

endervalentine

Senior member
Jan 30, 2009
700
0
0
This is prob. dumb, but how do I put two conditions in a while loop in TCL?

For example:

set a 1
while { $i >=5 && $a>0 } {
incr i 1
}

How do I put conditions within the while "test" statement?

This is not for hw, for work, I'm a perl guy, but need to build upon the existing tcl code ... thanks in adv!
 
 

Cogman

Lifer
Sep 19, 2000
10,284
138
106
I've not dealt with TCL, but from a quick google it looks like what you are doing is correct. You might look into the expr statement in TCL.