lua add table to table code example
Example 1: lua how to add something to a table
foo = {}
table.insert(foo, "bar")
table.insert(foo, "baz")
Example 2: lua add to table
table[#table + 1] = val
foo = {}
table.insert(foo, "bar")
table.insert(foo, "baz")
table[#table + 1] = val