getMacros: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 2: | Line 2: | ||
Returns a [[Macros:string list]] of the labels of all of the [[macro buttons]] on the [[Token: | Returns a [[Macros:string list]] of the labels of all of the [[macro buttons]] on the [[Token:Current Token|Current Token]]. | ||
===Usage=== | ===Usage=== | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> |
Revision as of 13:09, 13 December 2008
Function getMacros
Returns a Macros:string list of the labels of all of the macro buttons on the 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]