How NOT to Code - Example 4
Jan 13, 2010
Ok, this is one is more difficult. Try to run the following code on Adobe's flavor of ColdFusion (doesn't matter which edition) and then determine the cause of the result. You were expecting 'false' right ;)
<cfif "00" eq "0a">
true
<cfelse>
false
</cfif>
Richard Davies wrote on 01/13/102:09 PM
Wow! This one really had me baffled. I had no idea what could possibly explain this odd behavior. Finally I had to resort to Google to figure it out. (I won't spoil it here for everyone else...)This is good to know. Thanks for pointing it out.