Lines.ToText

Syntax

Lines.ToText(lines as list, optional lineSeparator as nullable text) as text

About

Converts a list of text values into a single text value. The specified line separator is appended to each line. If not specified, then the carriage return and line feed characters are used as the line separator.

Example

Convert three text values into a three-line text value.

Usage

Lines.ToText({"ID,Name", "1,Bob Smith", "2,Jan Lee"})

Output

"ID,Name#(cr)#(lf)1,Bob Smith#(cr)#(lf)2,Jan Lee#(cr)#(lf)"