Module:ItemTables: Difference between revisionsGive feedback
Jump to navigation
Jump to search
test |
table is string |
||
| Line 20: | Line 20: | ||
local item = get_json_item(item_name) | local item = get_json_item(item_name) | ||
if(item == nil) then return "Item Not Found" end | if(item == nil) then return "Item Not Found" end | ||
if(type(item[property]) == table) then | if(type(item[property]) == "table") then | ||
for i,v in pairs(item[property]) do | for i,v in pairs(item[property]) do | ||
local shopTableValues = table.insert(shopTableValues, v) | local shopTableValues = table.insert(shopTableValues, v) | ||