-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 29, 2006 9:18 AM
To: CF-Talk
Subject: RE: If the structure exists, otherwise ... consistency needed

Are you sure any of your conditional logic ever returns true?  Can you put
some output or something to make sure that the conditional is returning the
value you expect.  Maybe something like this just before the if statement to
see if it ever returns true.

Book.SalesRankTest =
structKeyExists(AmazonXML.ItemSearchResponse.Items.Item[i],"SalesRank");



That thought crossed my mind and I couldn't think of a way right then of how
to test that it was returning true.

You're e-mail promoted me to think a little harder -- return just a single
item from an API query ...

Sure enough, the conditional is not returning TRUE even when it should.

So I'm still stuck on what the correct test should be ... 

H.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245090
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to