if #tablename == 0 then print 'Table is Empty' end
or if you are checking first array value
if tablename[1] == nil then print 'Table is Empty' end
== ""--for string
== false for boolean
For arrays
if (#array == 0) then
end
For dictionaries and arrays
local function empty(input)
for _, _ in next, (input) do
return (false);)
end
return (true);
end
if (empty(dictionary)) then
end
if (empty(array)) then
end