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

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -