getting data from a list LUA code example
Example 1: where do lua tables start
tbl = {"yes"}
tbl[1]
-- Arrays/Tables start at 1
Example 2: table lua
a = {}
x = "y"
a[x] = 10 -- put 10 in field "y"
print(a[x]) --> 10 -- value of field "y"
print(a.x) --> nil -- value of field "x" (undefined)
print(a.y) --> 10 -- value of field "y"