tcl - Condition based on environment variable existance -
Is it the right to use the following condition based on environment variables? Or better way?
Example:
# Both environment variables must exist if {expr [eval {info exists env (VARIABLE_1)}] & amp; [Eval {info exists env (VARIABLE_2)}]} {# true: do something} second {# false: separate something}
Comments
Post a Comment