NextGen Knowledge Center

SPLIT Function

Use:Assigns values to an Array variable from a delimited character string.
Syntax:
{SPLIT( «delimiter» , «string» )}
Arguments:

«delimiter»
    Character that separates the values in a supplied character string (for example, comma or vertical line)
«string»
    Character string that contains the delimiter
Returns:Values for an Array variable
Example:

Field = txt_field with contents: red|yellow|blue|orange|green|purple
Array = @colors
{SPLIT( |, {template_name_.txt_field} )}
Array: Assign Field Value trigger:

Result: The function assigns the delimited values to the @colors Array variable.