listCount

From RPTools Wiki
Revision as of 02:44, 9 March 2009 by Verisimilar (talk | contribs) (Corrected typo.)
Jump to navigation Jump to search

listCount() Function

Returns the number of items in a string list.

Usage

[h: count = listCount(list)]
[h: count = listCount(list, delim)]

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

Examples

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

Returns 4

[r: listCount("This: is: a: test",":")]
Returns 4