Project

General

Profile

$envvar » History » Version 3

Per Amundsen, 08/10/2015 08:55 AM

1 1 Per Amundsen
_Added in 1.9.6_
2
3
*$envvar(name|N)*
4
5
Returns environment variables. If N is zero, returns total number of environment variables.
6
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 3 Per Amundsen
name|N - Name of the variable or 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
; List the name of the 16'th variable.
23
//echo -ag The 16'th variable is $envvar(15)
24
25
; List the value of the 'APPDATA' variable.
26
//echo -ag Value of APPDATA is $envvar(APPDATA)
27
</pre>