Jim:
Please don’t tell these guys to use a numerical compare when comparing strings. I know it’s hard to teach an old dog like you new tricks but I think there is hope for the others 😆
It is *MUCH* more ergonomic, and might avoid conversion problems, to use the string command like:
if {[string equal $var “”]}
Or even better since an empty list and an empty string are the same:
if {[lempty $var]}
You can get by with this most of the time in Tcl but it is slower. However, if you get used to doing it that way then enter something like !- =foo in Xlate, it will not work. So it is best to use string commands for string compares and numerical compares for numbers.
Finished with my soapbox now 😉