getMacroName: Difference between revisions
Jump to navigation
Jump to search
m (Fixing wikilinks) |
(Updated to reflect current behavior.) |
||
Line 3: | Line 3: | ||
|version=1.3b48 | |version=1.3b48 | ||
|description= | |description= | ||
Returns the name of the macro being executed | Returns the label/name of the macro being executed. If this macro function is run directly from chat, then this function will return "chat". | ||
|usage= | |usage= |
Revision as of 17:16, 7 April 2020
getMacroName() Function
• Introduced in version 1.3b48
Returns the label/name of the macro being executed. If this macro function is run directly from chat, then this function will return "chat".
Usage
getMacroName()
Examples
[h: macroName = getMacroName()]
[if(macroName == "chat", "You are running from chat", "You are running the macro called " + macroName)]