At 07:51 AM 11/11/2002 -0800, you wrote:
>On Monday, Nov 11, 2002, at 05:56 US/Pacific, Jeffry Houser wrote:
> > bad practice to me.  I do see it often enough, such as checking for the
> > length of a string like this:
> >
> >   <cfif Len(MyString)>
> >          Whatever
> >   </cfif>
> >
> >   It annoys me, because I would much rather see:
> >
> >   <cfif (Len(MyString) is 0)>
> >          Whatever
> >   </cfif>
> >
> >   The second is much more readable, in my opinion.
>
>And you reinforce my point by making exactly the error I highlighted:
>your two conditions are the opposite of each other.

  :grumble, grumble, grumble:  That was a typo.
  However, my point was to say that Len(MyString) is not a Boolean 
function, does not return a Boolean value, and should not be used as a 
Boolean comparison operator.
  Whether 'you' ( You being anyone) agrees with me is another story.


--
Jeffry Houser | mailto:jeff@;farcryfly.com
DotComIt, Putting you on the web
AIM: Reboog711  | Phone: 1-203-379-0773
--
My CFMX Book: 
<http://www.amazon.com/exec/obidos/ASIN/0072225564/instantcoldfu-20>
My Books: http://www.instantcoldfusion.com
My Band: http://www.farcryfly.com 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to