listCount: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Applied Template:MacroFunction)
(No difference)

Revision as of 02:43, 9 March 2009

listCount() Function

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

Example

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

Returns 4

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