I agree with Alan, I am a HUGE fan of not putting things like "GT O" or "NEQ
0" for boolean evaluation. I find it easier to read without the comparison.

.......................
Ben Nadel 
Web Developer
Nylon Technology
350 7th Avenue
Floor 10
New York, NY 10001
212.691.1134
212.691.3477 fax
www.nylontechnology.com
 
"You know, like nunchuck skills, bowhunting skills, computer hacking
skills... Girls only want boyfriends who have great skills."
- Napoleon Dynamite
-----Original Message-----
From: Alan Rother [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 01, 2006 3:59 PM
To: CF-Talk
Subject: Re: Problems with LEN

<cfif LEN("Form.FirstName") GT 0>

You also do not need to do the GT 0, ColdFusion boolean operators use all
non 0 values as TRUE.

And you should also TRIM your values as someone may have entered a space
into the field

<cfif LEN(TRIM(Form.FirstName))>

=]

--
Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241961
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to