listGet

From RPTools Wiki
Revision as of 16:38, 6 December 2008 by Craig (talk | contribs) (New page: ==Function listGet== Returns the value in the string list at the specified index. The index for a Macros:string list starts at 0. ===Usage=== <source lang="mt...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function listGet

Returns the value in the string list at the specified index. The index for a string list starts at 0.

Usage

[h: value = listGet(list, index)]
[h: value = listGet(list, index, delim)]

If delim is not specified then the default value of ',' is used as the value separator in the string list

Example

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

Returns a

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

Returns is