• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

quick tcl question: multiple conditions for a while loop?

endervalentine

Senior member
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!
 
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.
 
Back
Top