summaryrefslogtreecommitdiffstats
path: root/Help/variable/ENV.rst
blob: 2b439342ecaf7607af0ab6e7fff8d8d98fcccc8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
ENV
---

Operator to read environment variables.

Use the syntax ``$ENV{VAR}`` to read environment variable ``VAR``.

To test whether an environment variable is defined, use the signature
``if(DEFINED ENV{<name>})`` of the :command:`if` command.

See the :command:`set` and :command:`unset` commands to see how to
write or remove environment variables.