Project

General

Profile

$envvar » History » Revision 4

Revision 3 (Per Amundsen, 08/10/2015 08:55 AM) → Revision 4/9 (Per Amundsen, 08/11/2015 01:54 PM)

_Added in 1.9.6_ 

 *$envvar(name|N)* 

 Returns environment variables. If N is zero, returns total number of environment variables. 

 *Properties* 

 .name - Return name of the variable. 
 .value - Return value of the variable. 

 *Parameters* 

 name|N - Name of the variable or the Nth variable. 

 *Example* 

 <pre> 
 ; List number of variables. 
 //echo -ag Number of variables is $envvar(0) 

 ; List the name of the 16th 16'th variable. 
 //echo -ag The 16'th variable is $envvar(15) 

 ; List the value of the 'APPDATA' variable. 
 //echo -ag Value of APPDATA is $envvar(APPDATA) 
 </pre>