AndyJarrett

Tip- yesNoFormat(),

So heres a silly little tip that i think i'm the last to know off.
Usually when testing boolean logic, because its either too long, or i'm being too lazy to think about it i usually write something along the lines of:
<cfif y LTE x>
TRUE
</cfif>
Well as i was doing some work this morning i don't know why but i remebered the yesNoFormat(), and then, before the caffine had even settled it clicked. How much easier it to just put:
<cfoutput>#yesNoFormat(y LT x)#</cfoutput>

More seconds saved to drink my coffee :o