From WikiChip
Difference between revisions of "mirc/identifiers/$alias"
< mirc‎ | identifiers

m (bot: correcting title)
m
Line 1: Line 1:
 
{{mirc title|$alias Identifier}}'''$alias''' can be used to return the filename of the Nth loaded alias file. If you specify a filename, it returns $null if the file is not loaded; otherwise it returns the file's name.
 
{{mirc title|$alias Identifier}}'''$alias''' can be used to return the filename of the Nth loaded alias file. If you specify a filename, it returns $null if the file is not loaded; otherwise it returns the file's name.
 +
  
 
== Synopsis ==
 
== Synopsis ==
Line 26: Line 27:
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:MIRC identifiers]]
+
[[Category:mIRC identifiers|alias]]

Revision as of 14:21, 20 September 2017

$alias can be used to return the filename of the Nth loaded alias file. If you specify a filename, it returns $null if the file is not loaded; otherwise it returns the file's name.


Synopsis

$alias(N/filename)

Switches

None

Parameters

NThe Nth alias file you want to check. If N is 0, this will return the total number of alias files currently loaded.

filenameSpecify an actual filename if you want to explicitly check if an alias file is loaded. This will return $null if no file is loaded, otherwise it returns the file name.

Example

Echo the total number of alias files currently loaded to the active window

//echo -a $alias(0)

Echo the 3rd alias file name to the active window

//echo -a $alias(3)

Echo if myfile.mrc is currently a loaded alias to the active window

//echo -a $alias(myfile.mrc)

See also

[Expand]
v · d · e mIRC identifier list