how to check the table is nil?

how to check the table is nil? [import]uid: 22631 topic_id: 21689 reply_id: 321689[/import]

if table == nil then
– maybe like this…
end [import]uid: 3826 topic_id: 21689 reply_id: 86066[/import]

it did not work, I used table store The images and then removed it, an i want to check it wheather remove all. [import]uid: 22631 topic_id: 21689 reply_id: 86077[/import]

if you mean has no elements in it, you need to check for the length (if you are using an array type table) or iterate through to see if there are any elements present in the table or not.

An empty table is NOT nil because it is the same as table = {} [import]uid: 3826 topic_id: 21689 reply_id: 86078[/import]