Project

General

Profile

$isalias » History » Revision 8

Revision 7 (Per Amundsen, 05/30/2016 12:53 AM) → Revision 8/9 (Per Amundsen, 12/14/2019 08:14 AM)

_Added in 1.9.0_ 

 *$isalias(name, [N])* 

 Returns [[$true]] if the specified name is an alias command that exists in your aliases or scripts, otherwise [[$false]]. 

 *Parameters* 

 name - The alias to find. 
 [N] - If N = 0, number of lines for the alias, otherwise the Nth alias line. (optional) 

 *Properties* 

 .line - Returns the line in the file where the alias is defined. *(AdiIRC only)* (AdiIRC only) 
 .fname - Returns the path and filename of the found alias. 
 .alias - Returns the Nth line of the alias. 
 .ftype - Returns "alias" if the alias is found in an alias file, otherwise "remote". 

 *Example* 

 <pre> 
 ; Create an alias 
 alias example { 
   ; Check if /example2 is an alias 
   //echo -ag $isalias(example2) 

   ; Returns the code of the /example2 alias "-l example2 { echo -ag Hello World }" 
   //echo -ag $isalias(example2).alias 
 } 

 ; Create a second alias 
 alias -l example2 { echo -ag Hello World } 
 </pre>