type: General Function
expression: Split(string1, string2, index)
MyString1 = "hi;hello;hey"
MyString2 = Split(MyString1, ";", 0) - (Would return "hi")
MyString2 = Split(MyString1, ";", 1) - (Would return "hello")
MyString2 = Split(MyString1, ";", 2) - (Would return "hey")
what it does:
string1 is the string to split
string2 is the string/character to split string1 by
index is the index of the split to return
Str1 = "mr,mrs,miss"
Str2 = Split(Str1, ",", 1) - would return "mrs"
Hope this is understandable!
tokenat(src, index, separator)
Return the Nth token from src, splitting the string by separator. For example, tokenat("apples|oranges|bananas", 1, "|") returns oranges.
System expressions in the manual
Unless I missed something.
Develop games in your browser. Powerful, performant & highly capable.
Yeah, as Kyatric posted, there's even an expression to get the number of tokens.
Count how many tokens occur in src using separator. For example, tokencount("apples|oranges|bananas", "|") returns 3.