listItem function
string listItem(stringList, index)
stringList string
index float
Returns the item at the given index.
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"