listInsert: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Added version.)
m (Conversion script moved page listInsert to ListInsert without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:19, 9 February 2023

listInsert() Function

Introduced in version 1.3b42
Inserts a value into the string list at the specified index. If a delimiter is not specified then the default value of ',' is used. The index for lists starts at 0

Usage

listInsert(list, index, value)
listInsert(list, index, value, delim)

Example

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

Returns This, is, a, Test

[r: listInsert("This: a: test", 1, "is", ":")]
Returns This: is: a: test