Odd Empty behavior
William Prothero
prothero at earthednet.org
Tue Jul 1 14:58:16 EDT 2014
Folks:
LC 6.6.0, OSX 10.9.3
I have the following script:
put "XX" into test["data"]["a1"]
if test["data"] is empty then
answer "It is empty"
else
answer "Not empty"
end if
I would think that if there was some value in test[“data”], it would return “Not empty”. However, it returns empty. I think this is a very unexpected behavior because I think of the “a1” value of test as a subarray, especially since test[“a1”] doesn’t have the set value. In fact, test[“data”] is not empty. It contains the subarray [“a1”].
Is this a bug or just a livecode oddity?
Thanks,
Bill
More information about the use-livecode
mailing list