Or leave the " GT 0" in there because it helps readabilty, and if you ever
switch to a strongly typed language, you'll be much happier, because you
won't have to totally change the mental patterns associated with writing a
conditional.  

Cheers,
barneyb

> -----Original Message-----
> From: Philip Arnold [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 01, 2004 11:28 AM
> To: CF-Talk
> Subject: RE: Is an empty query object still a "good" query object?
>
> > From: Jeff Small
> >
> > But useful, in sofar as you could build a little check <cfif
> > myQuery.recordcount GT 0> and it would work...
>
> Short-cut that:
>
> <cfif myQuery.recordcount>
>
> CF treats non-zero as a logical true, so there's no need to
> check for GT
> 0
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to