Project

General

Profile

$alias » History » Revision 2

Revision 1 (Per Amundsen, 08/14/2014 03:28 AM) → Revision 2/3 (Per Amundsen, 06/28/2016 12:42 AM)

_Added in 1.9.4_ 

 *$alias(N/filename)* 

 Returns the filename for the Nth loaded alias file or if you specify a filename, it returns [[$null]] if the file is not loaded. 

 *Parameters* 

 N/filename - Nth alias or alias filename. 

 *Example* 

 <pre> 
 ; Print ;Print number of alias files. 
 //echo -ag $alias(0) 

 ; Print ;Print first alias file. 
 //echo -ag $alias(1) 

 ; Check ;Check if aliases.ini foo.txt is loaded. 
 //echo -ag aliases.ini foo.txt is $iif($alias(aliases.ini),loaded, $iif($alias(foo.txt),loaded, not loaded) 
 </pre>