Determining if an array is empty

Gregory Lypny gregory.lypny at videotron.ca
Tue Jun 29 15:02:52 EDT 2004


Hello everyone,

Suppose I have an array named thisArray and I want to know if it is 
empty, that is, whether it has any elements.  I find that

	"if thisArray is empty" returns true even if it is not

	but

	"if keys(thisArray) is empty" gives me the right answer

Am I correct in using the latter?

	Greg



More information about the use-livecode mailing list