Andy Jarrett // Code. Develop. Create.

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

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️