lua table values code example
Example 1: lua tables
local Table = {
["TABLE_info"] = "TABLE_response"
}
for i, v in pairs(Table) do
print(v)
end
Example 2: table in lua
local myTable = {}
Example 3: 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"