On 3/8/21 3:46 PM, HENRY LOWE via use-livecode wrote:
I have often used the form 'if tArray[“key1”] is empty' to determine whether an array element hold a value but this breaks if tArray[“key1”][“key2”] holds a value.
Same here. Not that I've every liked that paradigm, just that it's been that way since life crawled out of the ocean.
However this should do the trick. if tArray["status"] is an array then put tArray["status"]["text"] into tStatus else put tArray["status"] into tStatus end if -- Mark Wieder ahsoftw...@gmail.com _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode