[] operator

Synopsis
This operator creates an array. The array elements must be separated by a comma ','.
Remarks
Variations
[ Value_1, ..., Value_n ]
Creates an array
Parameters
Value_1, ..., Value_n

Specifies the array's values. All values must be of the same type.

Supported types: Numeric; Boolean; String; Object; Point; Numeric array; Boolean array; String array; Object array; Point array.
Returns
Returned types: Numeric array; Boolean array; String array; Object array; Point array.
Examples
1.

The following example returns the numeric array [3.1, 98, 2000, 7].

[3.1, 95 + 3, 2000, 7]
2.

The following example returns a string array with each word of "Matrox Design Assistant" as an element.

{["Matrox", "Design", "Assistant"]}
square bracket square brackets square braces square brace