Don't do that.  What's happening is that the number
(isthere.recordcount) is being implicitly converted to a boolean for
the CFIF to process.  Implicit conversion where the destination type
is something besides String is almost always the devil, end even if
it's String it's still the devil sometimes.

The right way to do it is this:

<cfif isthere.recordCount GT 0>

That way you're explicitly creating the boolean you want CFIF to
process.  Same thing goes for len(), listLen(), etc.

cheers,
barneyb

On Fri, Jan 9, 2009 at 11:48 AM, mark <[email protected]> wrote:
> Working with some old code and found this.can't seem to find a reference via
> adobe.com or  google or books.  Is it old or am I just missing something.
> It does work.
>
>
>
> <cfif isthere.recordcount>
>
>
>
> Seems a clean way to check.does anyone use this?
>
>
>
> Mark
>
>
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:317663
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to