split

Splits text into a list at every occurrence of a separator. An empty separator splits the text into its characters. Text without the separator gives a list of one item.

Runs on: either side: the compiler places the statement that calls it where the values it uses live.

Format:

split(text, separator)

Parameters:

Parameter Type Description
text string the text to split
separator string the text to split at (not a pattern)

Returned Value:

Type Description
array the pieces, in order

Examples

tags = split(tag_text, ",")