getMacroName: Difference between revisions
Jump to navigation
Jump to search
m (Macros:Functions:getMacroName moved to getMacroName: Taking it out of Macros namespace.) |
|
(No difference)
|
Revision as of 16:10, 7 March 2009
Function getMacroName
Returns the name 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: macroName = getMacroName()]
Examples
[h: macroName = getMacroName()]
[if(macroName == "chat", "You are running from chat", "You are running the macro called " + macroName)]