listCount: Difference between revisions

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

Revision as of 22:18, 9 February 2023

listCount() Function

Introduced in version 1.3b42
Returns the number of items in a string list.

Usage

listCount(list)
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