Len is a function that returns a numeric value. It must be evaluated as a number.
What you're saying in the first statement is: If NOT the Len of form.firstname is "".
This doesn't work because 0 does not equal "".
In the 2nd statement, you're sayiing "If the LEN of form.firstname is greater than 0".
See now that works - because you're evaluating numbers to numbers.
---mark
--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------
> -----Original Message-----
> From: paul smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 27, 2000 6:47 AM
> To: [EMAIL PROTECTED]
> Subject: RE: NULL using it in CF
>
>
> <CFIF NOT Len(Trim(Form.firstname))> doesn't work
>
> whereas <CFIF Len(Trim(Form.firstname)) GT 0> does work.
>
> Why?
>
> best, paul
>
> At 08:17 AM 6/27/00 -0400, you wrote:
> >Erf... Don't do THAT... This is 2-3 times faster:
> ><cfif Not Len(myvariable)>
>
> ------------------------------------------------------------------
> ------------
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
> _talk or send a message to [EMAIL PROTECTED] with
> 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.