Skip to content

Instantly share code, notes, and snippets.

@fakestarbaby
Created December 17, 2013 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fakestarbaby/8004789 to your computer and use it in GitHub Desktop.
Save fakestarbaby/8004789 to your computer and use it in GitHub Desktop.
Lua でテーブルの中身が空かどうか判定する ref: http://qiita.com/fakestarbaby/items/9c9f930fec89f5315b1a
table = {}
if not next(users) then
print("Table is empty.")
else
print("Table is not empty.")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment