string List: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:string list moved to String List: Moved to main namespace.) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
For example: | For example: | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: stringList="foo, bar, baz"] | [h: stringList="foo, bar, baz"] | ||
</ | </syntaxhighlight> | ||
String lists are zero-based (''i.e.'', the first item in a string list is item 0). The default delimiter in a string property list is the comma (","), however, the [[ | String lists are zero-based (''i.e.'', the first item in a string list is item 0). The default delimiter in a string property list is the comma (","), however, the [[:Category:String Function|String Functions]] that work with string lists allow for optional arguments to permit the use of alternate delimiters. | ||
String lists may be stored in [[Token: | String lists may be stored in a [[Token Property]]. | ||
[[Category:Variable Type]] |
Latest revision as of 17:37, 14 March 2023
A string property list is a string in the format "item1, item2, item3,..."
For example:
[h: stringList="foo, bar, baz"]
String lists are zero-based (i.e., the first item in a string list is item 0). The default delimiter in a string property list is the comma (","), however, the String Functions that work with string lists allow for optional arguments to permit the use of alternate delimiters.
String lists may be stored in a Token Property.