Has this always worked?

I'm sure I tried it in an earlier version of cf (4.5) I think, and it
didn't work.

Can anyone confirm this?

Thanks

Kola

-----Original Message-----
From: Matthew Walker [mailto:[EMAIL PROTECTED]] 
Sent: 16 July 2002 13:25
To: CF-Talk
Subject: Re: Writing efficient CFIF statements

This thread is odd. As Tim pointed out earlier, any non-zero value
evaluates
as TRUE so you can just say <cfif myQuery.RecordCount> and be done with
it.
That's far cleaner for the eye.


----- Original Message -----
From: "Patrick McElhaney" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, July 17, 2002 12:20 AM
Subject: RE: Writing efficient CFIF statements


> Clean and fast:
>
> <cfset QueryResults = (myQuery.RecordCount gt 0)>
>
> Patrick
> 

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to