$envvar » History » Version 6
Per Amundsen, 08/11/2015 01:55 PM
1 | 1 | Per Amundsen | _Added in 1.9.6_ |
---|---|---|---|
2 | |||
3 | *$envvar(name|N)* |
||
4 | |||
5 | 6 | Per Amundsen | Returns environment variables. |
6 | 1 | Per Amundsen | |
7 | *Properties* |
||
8 | |||
9 | 2 | Per Amundsen | .name - Return name of the variable. |
10 | .value - Return value of the variable. |
||
11 | 1 | Per Amundsen | |
12 | *Parameters* |
||
13 | |||
14 | 6 | Per Amundsen | name|N - Name of the variable, if N = 0, total number of variables, otherwise the Nth variable. |
15 | 1 | Per Amundsen | |
16 | *Example* |
||
17 | |||
18 | <pre> |
||
19 | ; List number of variables. |
||
20 | //echo -ag Number of variables is $envvar(0) |
||
21 | |||
22 | 5 | Per Amundsen | ; List the name of the 15th variable. |
23 | //echo -ag The 15th variable is $envvar(15) |
||
24 | 1 | Per Amundsen | |
25 | ; List the value of the 'APPDATA' variable. |
||
26 | //echo -ag Value of APPDATA is $envvar(APPDATA) |
||
27 | </pre> |