Multidimensional array issue
HENRY LOWE
hlowe at me.com
Thu Mar 11 14:33:00 EST 2021
Thank you to everyone for help in resolving this issue.
The syntax for determining if tArray[“status”] contains data or an array appears to be either:
If the value of tArray[“status”] is not empty // contains data
or
If tArray[“status”] is not an array // contains data
If I remember correctly, LC arrays are implemented as associative arrays (key, value pairs). I assume that they are implemented as hash tables as opposed to trees?
Henry
> On Mar 10, 2021, at 9:06 AM, Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> What he said. :-)
>
> Bob S
>
>
> On Mar 9, 2021, at 10:19 AM, Ralph DiMola via use-livecode <use-livecode at lists.runrev.com<mailto:use-livecode at lists.runrev.com>> wrote:
>
> If (not(tArray[“status”] is an array)) and (tArray[“status”] is not empty) then -- ***tArray[“status”] is not an array and is not empty.
> As MW said empty is technically a value.
>
> _______________________________________________
> 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