lua add value to table code example
Example 1: lua add to 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