From WikiChip
Editing mirc/identifiers/$isalias

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 13: Line 13:
 
* '''.ftype''' - returns the type of alias, if it's stored in a "remote" file or in an "alias" file
 
* '''.ftype''' - returns the type of alias, if it's stored in a "remote" file or in an "alias" file
 
* '''.alias''' - returns the alias definition, you can access a multiline alias with the N parameter.
 
* '''.alias''' - returns the alias definition, you can access a multiline alias with the N parameter.
 
 
 
'''Note''': If you have an alias named "test" inside a remote file A and another alias with the same name in another remote file B, even in B is loaded after A, if you execute the alias from an alias/event/etc inside file B, it will execute your alias in file B, you may be expecting this but the author here wasn't until recently. I was thinking it would always execute the first found alias in the order of loaded file unless the alias in B is local here. $isalias behaves the same way, if you call $isalias from a remote file, it will always use the alias defined inside that remote file if it exists, this suggests that alias are always local to a remote script, the -l switch when defining alias with the alias keyword wouldn't be that useful?
 
  
 
== Example ==
 
== Example ==

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)