[thelist] ColdFusion MX and CFIF notation

Seth Bienek evolt.list at sethbienek.com
Thu Nov 21 08:30:02 CST 2002


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




More information about the thelist mailing list