lua add to table
snippet in lua

lua add table to value

user5638

table.insert(table, position:num, value:any)

Lua array add item

user6251

local tbl = {}
table.insert(tbl, "Hello World")

lua insert table into table

user1309

table.insert(tabletoaddto, pos:num, tabletoinsert)

lua add to table

user4051

table[#table + 1] = val

lua add to table

user9744

foo = {}
table.insert(foo, "bar")
table.insert(foo, "baz")

Lua array add item

user5580

local tbl = {}
tbl[1] = "Hello World"