Dave Watts wrote:
>> <CFSET oldcompany = '033'>
>> <CFSET newcompany = '0033'>
>>
>> How would one compare these as strings and get a NOT equal
>> result rather then integers resulting in an equal result?
>>
> You could tack a non-numeric value to the end of each, and compare the
> resultant strings. There may be a better, and/or more elegant way, that's
> just off the top of my head.
I was considering that, but I felt sure there was a CF way to do this,
finally found the right documentation page compare().
<CFSET aVal = '033'>
<CFSET bVal = '0033'>
<cfoutput>
#aVal#:#bVal#
#aVal EQ bVal#
#aVal IS bVal#
#compare(aVal,bVal)#
</cfoutput>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304355
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4