Mar
22
2006
Stupid ColdFusion Mistake...
Posted by Joe Rinehart at 2:12 PM
8 comments - Categories:
ColdFusion MX
I've been puzzled for a few minutes over why both things are happening in the following conditional (inside of a
<cfif foo>
<cfset someComponent.doSomething() />
<else>
<cfset someComponent.doSomethingElse() />
</cfif>
<cfset someComponent.doSomething() />
<else>
<cfset someComponent.doSomethingElse() />
</cfif>
Do ya see it?
RconR wrote on 03/22/06 2:22 PM
Yes you are using <else> instead of <cfelse>.Is that what you mean?
It happens a lot when you are use to programming in other languages. I do it all the time.