Project

General

Profile

$envvar » History » Version 9

Per Amundsen, 02/16/2023 09:37 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 8 Per Amundsen
_Returns different variable values between 64 bit and 32 bit AdiIRC._
8 7 Per Amundsen
9 1 Per Amundsen
*Properties*
10
11 9 Per Amundsen
table(ktable).
12
|*Property*|*Description*|
13
| .name | Return name of the variable. |
14
| .value | Return value of the variable. |
15 1 Per Amundsen
16
*Parameters*
17
18 9 Per Amundsen
table(ktable).
19
|*Parameter*|*Description*|
20
| name<notextile>|</notextile>N | Name of the variable, if N = 0, total number of variables, otherwise the Nth variable. |
21 1 Per Amundsen
22
*Example*
23
24
<pre>
25
; List number of variables.
26
//echo -ag Number of variables is $envvar(0)
27
28 5 Per Amundsen
; List the name of the 15th variable.
29
//echo -ag The 15th variable is $envvar(15)
30 1 Per Amundsen
31
; List the value of the 'APPDATA' variable.
32
//echo -ag Value of APPDATA is $envvar(APPDATA)
33
</pre>