getSpeechNames: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
===Examples=== | ===Examples=== | ||
To display the names of all of the [[Token:speech|speech]] values for the | To display the names of all of the [[Token:speech|speech]] values for the [[Token:Current Token|Current Token]] use. | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
[h: names = getSpeech()] | [h: names = getSpeech()] | ||
[foreach(name, names, "<br>"): name] | [foreach(name, names, "<br>"): name] | ||
</source> | </source> |
Revision as of 13:12, 13 December 2008
Function getSpeechNames
Returns a string list containing the speech names of the Current Token.
Usage
[h: macros = getSpeechNames()]
[h: macros = getSpeechNames(delim)]
delim is the delimiter used to separate the values in the string list which defaults to ',' if not specified.
Examples
To display the names of all of the speech values for the Current Token use.
[h: names = getSpeech()]
[foreach(name, names, "<br>"): name]