Choose where you’d like to start

toListString

Overview

The toListString function converts comma-separated values into a list. The elements of the created list are of type text.

Return Type

Syntax

<variable> = <expression>.toListString();

where,

ParameterData typeDescription
<variable>LISTVariable which will contain the created list.
<expression>LIST/TEXT

The set of values that should be converted as a list containing text items.

Examples

The below example converts a text containing numbers separated by comma into a list with elements of type text.

 number_text = "1,2,3,4,5";
 items = number_text.toListString(); // items is now assigned a list with list elements - 1,2,3,4,5

Related Links

Get Started Now

Execute