Project

General

Profile

$isalias » History » Revision 3

Revision 2 (Per Amundsen, 03/02/2014 12:20 PM) → Revision 3/9 (Per Amundsen, 08/10/2015 07:05 AM)

_Added in 1.9.0_ 

 *$isalias(name)* 

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

 *Parameters* 

 name - The alias to find. 

 *Properties* 

 .fname - Returns the path and filename of the found alias 
 .alias - Returns the first line of the alias. 

 *Example* 

 <pre> 
 ; Create an alias -l test2 { echo -ag Hello World } 
 alias example test { 
   ; Check if /example2 is an alias ;Returns $true. 
   //echo /echo -ag $isalias(example2) $isalias(test2) 

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

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