Thread
:
Checking if a table/saved var is empty.
View Single Post
02-13-11, 06:26 PM
#
3
Foxlit
A Warpwood Thunder Caller
Join Date: Nov 2006
Posts: 91
Code:
function empty(t) return next(t) == nil; -- next(t) returns the "first" key in t end
__________________
... and you do get used to it, after a while.
Foxlit
View Public Profile
Send a private message to Foxlit
Find More Posts by Foxlit