On Wednesday, August 14, 2002, at 11:42 , Matthew Walker wrote: > Interesting. I would do this for readability, not speed. To take a > common example I would see > > <cfif myQuery.RecordCount> > > as more readable and immediately understandable than > > <cfif myQuery.RecordCount gt 0>
Ugh! :) I'd always write the latter (or <... eq 1> since I'm usually trying to get back just a single record in many of my queries!). > I guess also I think of any non-zero value as > boolean as I come from a CF background. Probably. As I think I've said before on this list (I've said it several times on other lists!): the languages you know inform the way you program. . "If you're not annoying somebody, you're not really alive." -- Margaret Atwood ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists