Project

General

Profile

$isalias » History » Version 5

Per Amundsen, 10/01/2015 06:19 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$isalias(name)*
4
5 2 Per Amundsen
Returns [[$true]] if the specified name is an alias command that exists in your aliases or scripts.
6 1 Per Amundsen
7
*Parameters*
8
9
name - The alias to find.
10
11
*Properties*
12
13 5 Per Amundsen
.line - Returns the line in the file where the alias is defined. (AdiIRC only)
14
.fname - Returns the path and filename of the found alias.
15 1 Per Amundsen
.alias - Returns the first line of the alias.
16
17
*Example*
18
19
<pre>
20 3 Per Amundsen
; Create an alias
21
alias example {
22
  ; Check if /example2 is an alias
23
  //echo -ag $isalias(example2)
24 1 Per Amundsen
25 4 Per Amundsen
  ; Returns the code of the /example2 alias "-l example2 { echo -ag Hello World }"
26 3 Per Amundsen
  //echo -ag $isalias(example2).alias
27 1 Per Amundsen
}
28 3 Per Amundsen
29
; Create a second alias
30
alias -l example2 { echo -ag Hello World }
31 1 Per Amundsen
</pre>