Why does CFIF test give opposite results?
I ran into an issue where a condition (CFIF) that should be true is returning false. I'm hoping someone has a nifty answer to this.
Here's some code I created to demonstrate the test:
<cfif url.userid is "session.userid"> <!--- Condition True --->
My test is <cfif url.userid is "session.userid"><br><br>
url.userid IS equal to session.userid<br><br>
The values are:<br>
url.userid = <cfoutput>#url.userid#</cfoutput><br>
session.userid = <cfoutput>#session.userid#</cfoutput><br><br>
<cfelse> <!--- Condition False --->
My test is <cfif url.userid is "session.userid"><br><br>
url.userid is NOT equal to session.userid<br><br>
The values are:<br>
url.userid = <cfoutput>#url.userid#</cfoutput><br>
session.userid = <cfoutput>#session.userid#</cfoutput><br><br>
</cfif>And here's how my "Condition False" code displays:

I'm stumped.
Thanks!
John Allred
