Hi!
I would like to check that some variables in the environment are set properly or simply exists.
If I do:
"set test $env(VAR)" and VAR does not exist I get an error message "VAR in not ENV array" How can I go pass this if VAR does not exist and I still want to be able to run the program and exit with my own error message.
I could go through all the elements of ENV array and check each one but I am sure there is a better way to do this.
Thanks!
I would like to check that some variables in the environment are set properly or simply exists.
If I do:
"set test $env(VAR)" and VAR does not exist I get an error message "VAR in not ENV array" How can I go pass this if VAR does not exist and I still want to be able to run the program and exit with my own error message.
I could go through all the elements of ENV array and check each one but I am sure there is a better way to do this.
Thanks!