how to use dynmiac array?

 

if i have a 3 dem array like test[2][][3] and the secod dem i don't know how many of it, and use it store some values. how to use it ? if i dem it like thiks test [2][][3] and use this test[2][1][3] to store value , it can get nothing.

and if i use tem like this test[2][300][3] and test[2][1][3] it can store. my question is if i don't know how many elements in it , how to use array ? thank you.

 
Use function ArrayRange() to detect the count of elements in the given dimension of the array.