Basic lua question
Posted: Sat Feb 23, 2013 6:44 pm
If I have this:
how should I acces pear? t[2][2] or t[2].pear? Could I do this: t[2][2] = { "inception" } ?
And most importantly,what would happen if i'd run a loop to go through t? what would it output when it got to t[2]? cause t[2] has 3 elements!
Code: Select all
t[2] = { "apple", "pear", "banana" }
And most importantly,what would happen if i'd run a loop to go through t? what would it output when it got to t[2]? cause t[2] has 3 elements!