listLast

Syntax

string listLast(stringList)

Parameters

Returns

Returns last item in stringList.

Description

This function returns the last item in the stringList.

Note: String lists are a series of strings stored inside one string. The elements are separated by a semicolon (";"). The data type is "string", thus it is not any real type of array as used in other scripting languages.

Related

Examples

listLast("rule;your;city;")
# result = "city"

listLast(fileSearch("myProject/assets/image*.jpg"))
# result = the image from that directory with the highest index

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