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.
What is your opinion on the way to do it? Numbers 1. <cfif this EQ that> 2. <cfif Compare(this, that) EQ 0> or <cfif CompareNoCase(this, that) EQ 0> 3. <cfif NOT Compare(this, that)> or <cfif NOT CompareNoCase(this, that)> Strings 1. <cfif this IS that> 2. <cfif Compare(this, that) EQ 0> or <cfif CompareNoCase(this, that) EQ 0> 3. <cfif NOT Compare(this, that)> or <cfif NOT CompareNoCase(this, that)> This was just something I was thinking about, that's all. Enjoy and I can't wait for the responses. Chuck ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:324544 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

