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

Popular posts from this blog

Editing Python Class in Shell and SQLAlchemy -

import - Python ImportError: No module named wmi -

uislider - In a MATLAB GUI, how does one implement a continuously varying slider from a GUIDE created .m file? -