str.split
A new array<string> with the parts of string between the separators ("a,b,,c" split by "," gives "a", "b", "", "c"). An empty separator splits into single characters; na gives an empty array.
str.split(string: string, separator: string) -> array<string>
Parameters
stringstring: The text to cut; na gives an empty array.separatorstring: The text between the parts; "" or na cuts after every character.
Example
levels = str.split("0.5,1,1.5", ",")