That looks right. What happens? ________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jovialrandor Sent: Thursday, September 06, 2007 3:16 PM To: [email protected] Subject: [flexcoders] Re: How to check if value exists in a return API call? Here is the current function that I'm using: private function bttnclick(event:Event):void { if (sanData.lastResult.ENTITLEMENT.USERS.USER.CAN_UPDATE_ASSET.ASSET_ID) { Alert.show('You can edit!', 'Message') } if (sanData.lastResult.ENTITLEMENT.USERS.USER.CAN_NOT_UPDATE_ASSET.ASSET_ID ) { Alert.show('No edit!', 'Message') } } --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "jovialrandor" <[EMAIL PROTECTED]> wrote: > > > I have API call that returns me this: > > 1. result>ENTITLEMENT>USERS>USER>CAN_NOT_UPDATE_ASSET=null > > 2. result>ENTITLEMENT>USERS>USER>CAN_UPDATE_ASSET>ASSET_ID=application > > > > I want to be able to display a message if 'CAN_UPDATE_ASSET" returns > null. > > > > Thanks >

