Ah, yes. I remember having to constantly check for stuff like that now (strings for entry into other functions and what not). I also remember hating hanging boole's like that too. I remember getting to one company where the previous programmer wrote gobs of unnecessary code--besides the absolute weird things like splash screens and what not--and I spent weeks trimming the fat from his code and tracking down the runaway "TTTTTTTTNILTNILLNILL" prompts from the 5 minute startups. It was an average morning if I trimmed a few hundred lines of code from one of his procedures--and a splash screen of a dragon-.
It's up to you guys but I can only speak from what little experience I remember about keeping variable creation hygienic--tracking down stray variables is not fun--and hanging/unnecessary boolean functions.
The only reason I set a variable is to check that (getenv "LastTemplate") actually returns something ( don't know why it ever would not but... ) otherwise STRCASE will $h!+ the bed .
I guess you could write it like this too not setting any variables.
Ok guys. This is where I am at.
...
None of that makes any sense to me. I hope it works but if not, good luck.