[thelist] ColdFusion MX and CFIF notation

Raymond Camden ray at camdenfamily.com
Sat Nov 23 10:37:00 CST 2002


Seth, the RC of a empty QofQ should always be 0. If you have a
reproduceable case where it isn't, let me know. As for the original
question, nothing in regards to logic checks was changed in MX, so using
<cfif query.recordCount> should work just fine.

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : ray at camdenfamily.com
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org] On Behalf Of Seth Bienek
> Sent: Thursday, November 21, 2002 8:30 AM
> To: thelist at lists.evolt.org
> Subject: RE: [thelist] ColdFusion MX and CFIF notation
>
>
>
> See below. :)
>
> > -----Original Message-----
> > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > > From: Ben Dyer
> > >
> > > In ColdFusion 5, this:
> > >
> > >    <CFIF Whatever.RecordCount>
> > >
> > > used to be the equivalent of:
> > >
> > >    <CFIF Whatever.RecordCount GT 0>
> > >
> > > However, in ColdFusion MX, this no longer appears to be
> > > the case.  The exact opposite appears to be true.
> > ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> >
> > not in any case i've ever tried.  mx upholds the same
> boolean logic --
> > 0 equals false and any other number (positive or
> > negative) means true.
> >
> > i suspect there is something else going on with your query.
>
> In CF5 (haven't tested on MX), if a query-of-a-query returns
> no records, the recordcount value for the query becomes
> unreliable.  This is not based on anything I've read, but on
> past experience.
>
> Could this be related to the issue you're having?
>
> Seth
>
> --
> * * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !





More information about the thelist mailing list