listAppend

From RPTools Wiki
Revision as of 16:14, 6 December 2008 by Craig (talk | contribs) (New page: ==Function listAppend== Returns a Macros:string list with a value appended to the end of the Macros:string list. ===Usage=== <source lang="mtmacro" line> [h: list = listAppend(...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function listAppend

Returns a string list with a value appended to the end of the string list.

Usage

[h: list = listAppend(list, value)]
[h: list = listAppend(list, value, delim)]

If delim is not specified then the default value of ',' is used to separate the values in the string list

Example

[r: listAppend("This, is, a", "test")]

Returns This, is, a, test

[r: listAppend("This: is: a:", "test", ":")]

Returns This: is: a: test