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 [email protected] _______________________________________________ use-livecode mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
