serializeList

Last update: 2024-01-29
  • Created for:
  • Experienced
    Developer

Converts a given list (any type except listObject) into a string.

Category

List

Function syntax

serializeList(<parameters>)

Parameters

Parameter Type Description
listToProcess listString, listBoolean, listInteger, listDecimal, listDuration, listDateTime, listDateTimeOnly, listDateOnly List to convert into a string.
separator string Separator between each list element in the output string.
addQuotes boolean This parameter indicates if each element in the output string should include quotes (true) or not (false).

Signature and returned type

serializeList(<listInteger>,<string>,<boolean>)

serializeList(<listDecimal>,<string>,<boolean>)

serializeList(<listString>,<string>,<boolean>)

serializeList(<listBoolean>,<string>,<boolean>)

serializeList(<listDateTimeOnly>,<string>,<boolean>)

serializeList(<listDateTime>,<string>,<boolean>)

serializeList(<listDateOnly>,<string>,<boolean>)

serializeList(<listDuration>,<string>,<boolean>)

Return a string.

Example

serializeList(["Hello","World"], " ", false)

Returns “Hello World”.

serializeList(["Hello", "World"], ",", true)

Returns ““Hello”,“World””.

On this page