Array functions
'Defines an ARRAY with up to 99 elements
Sub ARRAY(elem1, elem2, elem3, ...) As Array
'Reads an array element
Sub AGET($arr as Array, $index As Integer) As String
'Changes the value of an array element
Sub ASET($arr as Array, $index As Integer, $value As String)
'Number of elements in an array
Sub ACOUNT($arr As Array) As Integer
The plugin system does not support arrays by default, but you can simulate arrays by using the functions ARRAY(), AGET(), ASET(), and ACOUNT().
Arrays that are created with these functions are zero-based, and the index starts at 0.
Example:
Dim $arr = ARRAY(2, 4, 6, 8, "text")
Dim $i, $s
$i = AGET($arr, 1)'returns 4
$s = AGET($arr, 4) 'returns "text"
ASET($arr, 1, "wsw") 'replaces element #1 with the string "wsw"
$i = ACOUNT($arr) 'returns the number of elements which is 5