Multidimensional array issue

Mark Wieder ahsoftware at
Mon Mar 8 18:56:33 EST 2021

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
   put tArray["status"] into tStatus
end if

  Mark Wieder
  ahsoftware at

More information about the use-livecode mailing list