Answers for "how to empty a table in lua"

Lua
2

lua table is empty

if not next(myTable) then
    -- Table is empty
end
Posted by: Guest on September-27-2020
0

lua clear table

for i=1, #tablevar do
  tablevar[i] = nil
end
Posted by: Guest on May-10-2020

Browse Popular Code Answers by Language