Thanks to all for your excellent discussion and suggestions. To briefly restate the problem:
If tArray[=E2=80=9Cstatus=E2=80=9D] does not contain a value and If tArray[=E2=80=9Cstatus=E2=80=9D][=E2=80=9Ctext=E2=80=9D] contains a = value How do I determine if tArray[=E2=80=9Cstatus=E2=80=9D] contains a value? In the message box: put "data" into tArray["key1"]["key2"]; answer the value of = tArray["key1=E2=80=9D] - returns EMPTY (so this works) put "data" into tArray["key1"]["key2"]; answer tArray["key1=E2=80=9D] is = empty - returns FALSE (it should return true IMHO)=20 put "data" into tArray["key1"]["key2"]; answer tArray["key1=E2=80=9D] is = an array - returns TRUE (so not helpful)=20 Henry > On Mar 8, 2021, at 4:54 PM, Mark Wieder via use-livecode > <use-livecode@lists.runrev.com> wrote: > > On 3/8/21 4:25 PM, HENRY LOWE via use-livecode wrote: > >> My code is trying to do the following: > > No, I *do* see what you're trying to do. > Here... try it for yourself: > > on mouseUp pMouseBtnNo > local tArray > > put "hello" into tArray["status"] > put tArray["status"] is an array into msg # false > breakpoint > put tArray["status"]["text"] is an array into msg # false > breakpoint > put "goodbye" into tArray["status"]["text"] > put tArray["status"] is an array into msg # true > breakpoint > put tArray["status"]["text"] is an array into msg # false > breakpoint > end mouseUp > > ...or Ralph's version will also do the trick. > > -- > 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 _______________________________________________ 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