Arrays
Arrays
Scripts support array constructors and support to variant arrays. To construct an array, use "[" and "]" chars. You can construct multi-index array nesting array constructors. You can then access arrays using indexes. If array is multi-index, separate indexes using ",". Arrays in scripts use a zero-based index.
Some examples:
NewArray = [ 2,4,6,8 ]
Num = NewArray[1] //Num receives "4"
MultiArray = [["green","red","blue"] , ["apple","orange","lemon"]]
Str = MultiArray[0,2] //Str receives 'blue'
MultiArray[1,1] = "new orange"