- string listLast(stringList)
Returns last item in stringList.
The listLast function returns the last item in the stringList.
Stringlists 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.
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