Use NOT or use !, it's all possible
Today I came across a piece of code made by a co-worker and in the 11 years that I use ColdFusion I never knew it was possible.... and i'm guessing that's it's only possible since MX.The piece of code below works...
<cfset var = 1 />
<cfif !var>
Do something
</cfif>
To use ! is the same as using NOT in the cfif statement. Pretty darn nice!! Probably old news but for me it was something I never saw anywhere in CF code.1217 viewed | 8 opinion(s) | del.icio.us | Digg it | Tjarko @ 22/10/08 17:33 cet



