Project

General

Profile

$envvar » History » Version 5

Per Amundsen, 08/11/2015 01:55 PM

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 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>