listLast

Synopsis

string listLast(string stringList)

Returns

Returns last item in stringList.

This function returns the last item in the stringList.

Note: Stringlists 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

example.1
	listLast("rule;your;city;")
	# result = "city"

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

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