Project

General

Profile

$envvar » History » Version 2

Per Amundsen, 07/29/2015 01:29 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
name|N - Name of the variable or the N'th variable.
15
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>