getMacroLocation: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) No edit summary |
Verisimilar (talk | contribs) m (Macros:Functions:getMacroLocation moved to getMacroLocation) |
(No difference)
|
Revision as of 04:11, 7 March 2009
getMacroLocation() Function
Returns the location of the macro being executed via [macro():] . If the macro typed into chat, run by clicking on a macro button, or run via the token popup menu then this function will return "chat".
Usage
[h: libToken = getMacroLocation()]
Example
[h: libToken = getMacroLocation()]
[if(libToken == "chat", "You are running from chat", "You are running from library token " + libToken)]