- float listSize(stringList)
Returns number of elements in stringList.
The listSize function returns the number of elements 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 listSize("cityengine;rules;") # result = 2 example.2 listSize(fileSearch("/myProject/assets/*.jpg")) # result = the number of .jpg files in that directory.