getMacros: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function getMacros== {{ProposedChange}} Returns a Macros:string list of the labels of all of the macro buttons on the Token:current token. ===Usage=== <source lang="mtmacro"...) |
|||
Line 1: | Line 1: | ||
==Function getMacros== | ==Function getMacros== | ||
Returns a [[Macros:string list]] of the labels of all of the [[macro buttons]] on the [[Token:current token]]. | Returns a [[Macros:string list]] of the labels of all of the [[macro buttons]] on the [[Token:current token]]. |
Revision as of 15:05, 6 December 2008
Function getMacros
Returns a Macros:string list of the labels of all of the macro buttons on the Token:current token.
Usage
[h: macros = getMacros()]
[h: macros = getMacros(delim)]
delim is the delimiter used to separate the values in the string list which defaults to ',' if not specified.
Examples
To display all of the macro button labels on the current token use.
[h: macroLables = getMacros()]
[foreach(macro, macroLables, "<br>"): macro]