In my code I use environment variables, but if it (env.var) does not exist, I get the error NAME_ENV_VAR: there is no such variable, and my script stops running. For example, in the line
myeval $env($File)
I get an error message:
can't read "env(NIKE_TECH_DIR)": no such variable while executing "myeval $env($File)" (procedure "chooseRelevantFiles" line 39) invoked from within "chooseRelevantFiles $::GlobalVars::reqStage" (file "/vobs/tavor/src/Scripts/ReproduceBug.tcl" line 575)
How can I avoid this error and continue to execute the script?
tcl
user782642
source share