Cheers all..!!
I'm writing my first simple custom tag that is tailored to our products.

I'm going to post the code on the list later so it can be ridiculed, if you
want to that is.

Its helpful seeing were you can improve..

-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 7:15 PM
To: CF-Talk
Subject: RE: LT Function


> > q_createRecordSet.INFLOW NEQ ""
> 
> dunno about the rest, but this should be NOT 
> q_createRecordSet.INFLOW IS ""

The two are identical, and the usual operator syntax would be "IS NOT",
rather than "NOT ... IS". These statements would all perform the same test:

<cfif a NEQ b>
<cfif a IS NOT b>
<cfif NOT a IS b>

In a similar vein, you might want to use string functions to build your
conditions instead; you might get infinitesimally better performance using
Len, for example:

<cfif not Len(Trim(q_createRecordSet.INFLOW))>

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the mailserver that powers this list at http://www.coolfusion.com
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