Skip to main content

Split

The Split function returns a list of strings from a string, according to a specified delimiting character.

Prototype

  Split(String; Separator)

Arguments


String String By value

The String containing separated strings to be converted to a list. String can be a literal encapsulated
in single quotes, a variable, or the result of an expression.

Seperator String By value

A valid string containing the delimiting character. Argument can be a literal, the result of an expression
or a variable (Studio only).

Returns

List

Parameter value converted to a list of string.

Exception

Undefined

Undefined is returned if one of the three arguments is not a valid string.

Example

$myList = Split('aaa,bbb,ccc'; ',')

This will return a list of three strings.

$myList = Split($myVar; ',')

This will return a list of string according to substrings separated by the , (comma) character contained in the variable $myVar.