"Murphy was an optimist!"
Simplifying Code August 11, 2010 9:55 pmPosted by Doug McCaughan in : ColdFusion, Programming, Technology
Often I run across code like this:
<cfset HasCart = False>
<cfset HasCart = True>
Frankly, that makes me twitch a little. This has the same result:
<cfset HasCart = NOT ArrayIsEmpty(Cart.Products)>