You mean like a multidimensional array? Like in the following example:
arr <- [
["sub array 0", true, 54, 0.45],
["sub array 2", false, 213.6, 32],
["sub array 3", false, 9897, 45.425],
["sub array 4", true, 321.2353, 32]
];
foreach (sub in arr)
{
print(format("\n%s elements are the following:\n", sub[0]));
print(format("\telement 1 is of type %s with the value %s\n", typeof sub[1], sub[1].tostring()));
print(format("\telement 2 is of type %s with the value %s\n", typeof sub[2], sub[2].tostring()));
print(format("\telement 3 is of type %s with the value %s\n", typeof sub[3], sub[3].tostring()));
}
Output should be:
sub array 0 elements are the following:
element 1 is of type bool with the value true
element 2 is of type integer with the value 54
element 3 is of type float with the value 0.45
sub array 2 elements are the following:
element 1 is of type bool with the value false
element 2 is of type float with the value 213.6
element 3 is of type integer with the value 32
sub array 3 elements are the following:
element 1 is of type bool with the value false
element 2 is of type integer with the value 9897
element 3 is of type float with the value 45.425
sub array 4 elements are the following:
element 1 is of type bool with the value true
element 2 is of type float with the value 321.235
element 3 is of type integer with the value 32