RPTools

From MapToolDoc

listGet

listGet() Function

Introduced in version 1.3b42

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

Usage

  1. listGet(list, index)
  1. 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

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

Returns a

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

Returns is