$isalias » History » Revision 6
Revision 5 (Per Amundsen, 10/01/2015 06:19 PM) → Revision 6/9 (Per Amundsen, 10/01/2015 06:19 PM)
_Added in 1.9.0_ *$isalias(name)* Returns [[$true]] if the specified name is an alias command that exists in your aliases or scripts, otherwise [[$false]]. scripts. *Parameters* name - The alias to find. *Properties* .line - Returns the line in the file where the alias is defined. (AdiIRC only) .fname - Returns the path and filename of the found alias. .alias - Returns the first line of the alias. *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>