An ARRAY variable can contain many values, each of which is called an
array element. An Array is created automatically by creating one of its array elements.
This will create an array variable named !NewArray if it does not already exist and will set element 1 of that array to the value of
!NewValue. If
!NewArray already exists as a simple variable,
you will get an error message and the command will be ignored.
The individual elements of an array variable can be set independently and in any order. Thus you can set
!X[1] and
!X[10] without setting any of the intervening elements
!X[2] to
!X[9]. In other words PML arrays are allowed to be ‘sparse’ and to have gaps between the subscript numbers which have values set.
An array subscript of zero is allowed but you are advised against using it as many of the array facilities ignore array element zero.