I prefer <cfif iif(this eq that,de("true"),de("false"))>

Seriously though, do what looks best and is easiest to read and
maintain.  I have seen performance benefits of one way over another, but
they are few and far between.  
Most of my business logic is in cfscript these days and I'm usually
kickin it with the ECMA operators like == != etc.

~Brad

-------- Original Message --------
Subject: Comparisons - Your thoughts
From: Chuck Weidler <[email protected]>
Date: Wed, July 15, 2009 1:52 pm
To: cf-talk <[email protected]>


I was wondering what the community was doing with comparisons, like in a
cfif. I have done it many different ways. List below are just few
examples, and yes I know that the Compare() and CompareNoCase() should
be used for string comparison and not numbers, but I have seen it done
that way in some code that I maintain at work. I'm not saying one way is
better than another I just want you to give your opinions.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324550
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to