listItem

Syntax

string listItem(stringList, index)

Parameters

Returns

Returns item at the given index.

Description

This function returns the item of the stringList at the given index.

Note.1: Indices are 0 - based.

Note: String lists are a series of strings stored inside one string. The elements are separated by a semicolon (";"). Each item must be followed by a semicolon, also the last one! The data type is "string", thus it is not an array as used in other scripting languages.

Related

Examples

listItem("rule;your;city;",2)
# result = "city"

listItem("texture_1.jpg;texture_2.jpg;texture_3.jpg;",0)
# result = "texture_1.jpg"

Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.