A literal array declares and populates an array in a single expression. For example,

aTest = { 4, "yclept", true }

creates an array with three elements:

The number 4

The string "yclept"

The logical value true

and assigns it to the variable aTest. The three elements are enclosed in curly braces (the same curly braces used for dates) and separated by commas.

Array elements are referenced with the index operator, the square brackets ([ ]). Elements are numbered from one. For example, the third element is element number 3:

? aTest[ 3 ] // Displays true

You can assign a new value directly to an element, just like a variable:

aTest[ 3 ] = false // Element now contains false