Arrays are used to store multiple values in a single variable, instead of declaring separate variables for each value.
You can create arrays using the INT_ARRAY, BOOL_ARRAY, FLOAT_ARRAY, and STRING_ARRAY functions.
The INT_ARRAY (Num) function creates an array of Integers of size Num.
The BOOL_ARRAY (Num) function creates an array of Booleans of size Num.
The FLOAT_ARRAY (Num) function creates an array of Floats of size Num.
The STRING_ARRAY (Num) function creates an array of Strings of size Num.
You access an array element by referring to the index number.
> a = INT_ARRAY(5)
> a[2] = 3
> PRINT a[2]
3
> PRINT a
{ 0, 0, 3, 0, 0 }
> b = STRING_ARRAY(2)
> b[0] = "HELLO"
> b[1] = "WORLD"
> print b
{ "HELLO", "WORLD" }