working with tables in lua code example
Example 1: where do lua tables start
tbl = {"yes"}
tbl[1]
-- Arrays/Tables start at 1
Example 2: lua tables
local favoritefoods_table = {"hamburger", "spaghetti", "pizza", "potato chips"}
--the table--
for i, v in pairs(favoritefoods_table) do --loop through the table--
print(i) --print the number--
print(v) --print the value--
end