Odd Empty behavior

J. Landman Gay jacque at hyperactivesw.com
Tue Jul 1 16:11:43 EDT 2014


On 7/1/2014, 3:03 PM, Peter Haworth wrote:
> Livecode always returns true if you test an array for empty, although I
> think that behavior might have changed in a recent release.

Right. In 6.6.2, this returns "not empty":

    put "XX" into test["data"]["a1"]
    if test["data"] is empty then
       answer "It is empty"
    else
       answer "Not empty"
    end if


-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the use-livecode mailing list