heh ... I guess you did not read the 62 or so replies with this subject, I was being sarcastic, sorry.
On 10/3/06, Mike Kear <[EMAIL PROTECTED]> wrote: > > On 10/4/06, Aaron Rouse <[EMAIL PROTECTED]> wrote: > <<<lets not even get started on the fact you are > > treating a record count on a query like a boolean.>>> > > What's the matter with treating a recordcount like a boolean? It's > either zero (equivalent to false) or non-zero (equivalent to true) > and since ColdFusion works like that, what's the matter with using it? > > The only possible problem I can see is if recordcount doesnt exist > because there is no query object. So as long as you're guaranteeing > there is a query object before you run that <cfif query.recordcount, > what's the matter with treating it like a boolean? > > Are you sure you're not applying rules from other programming > languages to ColdFusion? > > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255330 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

