listReplace: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Applied Template:MacroFunction) |
Verisimilar (talk | contribs) m (Macros:Functions:listReplace moved to listReplace) |
(No difference)
|
Revision as of 02:53, 9 March 2009
listReplace() Function
Replaces the element at the specified index of a string list with a new value. If a delimiter is not specified then the default value of ',' is used. The index for lists starts at 0
Usage
[h: newList = listReplace(list, index, value)]
[h: newList = listReplace(list, index, value, delim)]
Example
[r: listReplace("This, isnt, a , test", 1, "is")]
Returns This, is, a, Test
[r: listReplace("This: isnt: a: test", 1, "is", ":")]