Odd Empty behavior
William Prothero
prothero at earthednet.org
Tue Jul 1 16:17:58 EDT 2014
Thanks, I’ll check it on later versions. This is a pretty important issue to me, so I’ll try to make sure I don’t rely on the test[“data”] empty property.
Thanks,
Bill
On Jul 1, 2014, at 1:11 PM, J. Landman Gay <jacque at hyperactivesw.com> wrote:
> 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
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list