The alternative would be: <cfloop condition="(NOT structKeyExists(posts,'query')) OR posts.query.recordcount GT 10">
ColdFusion doesn't evaluate the OR condition if the first condition has already returned TRUE - i.e. if the query doesn't exist, it will not look for the recordcount; if it does, then it will evaluate the second half of the condition. Seb Seb Duggan Web & ColdFusion Developer e: [email protected] t: 07786 333184 w: http://sebduggan.com On 5 Jan 2009, at 13:31, daniel kessler wrote: > I'm trying to create a conditional cfloop that has two conditions. > > <cfloop condition="(NOT structKeyExists(posts,'query')) AND > posts.query.recordcount GT 10"> > > > I only want it to loop until the query struct exists and when it has > at least 10 entries in it. Otherwise, I decrement the date by two > weeks and have it query again. This is through rss feed so I can't > just query for the top 10. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:317402 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

