listLast function

string listLast(stringList)

stringList string

Returns the last item in stringList.

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