toList
Table of Contents
Overview
The toList function takes source text and a separator as arguments. The source text is tokenised using the separator. All tokens are then converted into a list.
Note:
- Text values punctuated by the separator will be the list's elements.
 - If a separator is not provided or if the provided separator does not appear in the source text, the entire source text is returned as a single element of a list.
 - If separators appear consecutively in the source text, all empty occurrences will be empty elements of the list.
 
Return Type
- LIST
 
Syntax
<variable> = <source_text>.toList(<separator>);
where,
| Parameter | Data type | Description | 
| <variable> | LIST | Variable which will contain the returned List. | 
| <source_text> | TEXT | The piece of text with separators that needs to converted to a list. | 
| <separator> | TEXT | The separator literal which would punctuate the different elements in the source text. | 
Examples
products = "ZohoCreator/ZohoCRM"; productList = products.toList("/"); info productList; // Returns ZohoCreator,ZohoCRM