RPTools

Personal tools
From MapToolDoc
(Redirected from Macros:Functions:listCount)

listCount

listCount() Function

Introduced in version 1.3b42

Returns the number of items in a string list.

Usage

  1. listCount(list)
  1. listCount(list, delim)

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

Examples

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

Returns 4

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

Returns 4