Let that be a lesson to you! :P

S. Isaac Dealey
Certified Advanced ColdFusion 5 Developer

www.turnkey.to
954-776-0046

> (sigh)... you are of course correct - pardon me for typing too fast.  Next
> time I will test all sample code before I place it in my email <g>.

> -mk

> -----Original Message-----
> From: S. Isaac Dealey [mailto:info@;turnkey.to]
> Sent: Monday, November 11, 2002 10:39 AM
> To: CF-Talk
> Subject: RE: Booleans


>> Sean,

>> I use a UDF called "IsEmpty( )" for readibility purposes.  For one thing,
>> to
>> truly use the len( ) statement (with or without  the "IS 0"), you may
>> often
>> be required to trim the variable - especially if it's user input.  This
>> results in:

>> <cfif trim(Len(somvar)) IS 0>

> <cfif len(trim(somevar)) is 0>

> trim(len()) will trim the number 3 from "   ".

> S. Isaac Dealey
> Certified Advanced ColdFusion 5 Developer

> www.turnkey.to
> 954-776-0046

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to