Nested array comparisons

Robert Sneidar slylabs13 at me.com
Sun Mar 24 11:16:02 EDT 2013


I am curious what would happen if yo compare to arrays with different keys. I seem to remember something about array comparisons only comparing keys and not their values. I might have been dreaming after a bout with some bad pizza though...

Bob


On Mar 23, 2013, at 12:43 PM, David Beck wrote:

> 
> If one has two nested arrays, can you compare the two for equality by doing
> 
> if deepArray_1 is deepArray_2 then
>   -- do whatever
> end if
> 
> It looks like this does not work. That is, you get false positives at times when the two arrays are in fact not equal. Can not find documentation to determine whether this is bug of the expected behavior!
> 
> David Beck
> _______________________________________________
> 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