Forum OpenACS Q&A: Response to foreach..lindex...behavior??

Collapse
Posted by Pascal Scheffers on
try replacing { $status1 == "unstart" } with { [string equal $status1 "unstart"] }. It's more typing, but that way you are SURE that tcl is doing a string compare. Comparing empty variables with something else produces weird results. Don't know why, prolly something to do Tcl being a loosely typed language.