SmallBASIC GuideThe language | Programming Tips | Commands | System | Graphics & Sound | Miscellaneous | File system | Mathematics | 2D Algebra | Strings | Console | Glossary |
Nested arrays
Nested arrays are allowed
A = [[1,2] , [3,4]]
B = [1, 2, 3]
C = [4, 5]
B(2) = C
print B
This will be printed
[1, 2, [4, 5], 3]
You can access them by using a second (or third, etc) pair of
parenthesis.
B(2)(1) = 16
print B(2)(1)
Result:
16
[Prev] [Next]