Quick Cube Voyager Trick: Arrays
While injecting bugs into a script, I found a quick trick in Cube related to arrays. Â I didn’t test it to see if it works on a single-dimension array, but it DOES work on a multi-dimension array.
ARRAY Test=8,8
Test=1
This sets everything in Test to 1, so if you write:
LOOP _x=1,8
LOOP _y=1,8
PRINT LIST=Test[_x][_y]
ENDLOOP
ENDLOOP
The response will be ‘1’ 64 times.