Template Engine language reference > Arrays

Arrays
An array contains zero or more elements, where each array element can be assigned different types of values (string, integer, double, array or boolean). The list below shows some examples of arrays:
Integer array: [10, 20, 30]
String array: ['A', 'B', 'C']
Mixed array: ['A', 19, 34.65]
Array object and variable referring to the array object
An array consists of an array object stored in memory and a variable that refers to the array object.
Click to enlarge
Several variables referring to the same array object
Several array variables can refer to the same array object. If you modify an array object via an array variable, all other array variables that refer to the same array object will be affected.
Zero based index
To be able to access the elements in an array, a zero based index is connected to each array object. The first element has index 0, the second has index 1 and so on.
Click to enlarge
In this section
OpenText StreamServe 5.6.2 Updated: 2018-01-26