You need to iterate the table, but it depends on the structure of your table. You need to use either
or
e.g.
Lua Code:
local myTable = {[key1]="value1",[key2]=value2}
for key, value in pairs(myTable) do
d("key: " .. key .. " value: " .. value)
end
local myOtherTable ={value1, value2, value3}
for index, value in ipairs(myOtherTable) do
d("item number " .. index .. " = " .. value)
end
instead of ipairs you could also use:
Lua Code:
for index = 1, #myOtherTable do
d("value = " .. myOtherTable[index])
end