list(function)

Description

Converts any other type to a list.

Copy
list list( mixed value )

Converts valueto a list, according to the following rules:

  • If passed a list, returns that list
  • If passed null, returns null
  • If passed anything else, returns list with exactly one item in it ( value )

Example

{list([1,2,3])} ----> [1,2,3]
{list("test")}  ----> ["test"]
{list(null)}    ---->