Mar 03
It's such a simple thing but I actually googled this because I couldn't think of it offhand.
CODE:
-
<cfif len(str)>
-
<cfoutput>#str#</cfoutput>
-
</cfif>
if str has zero characters, len(str) will return 0, mimicking behaviour of false. Cool!

March 3rd, 2008 at 9:32 am
You'll find this is a common shortcut in most langs, actually. Of course, some argue it is poor practice because it is less readable; others say it is better because it is less code.
Here's another cool thing you can do:
The alternative would be a clumsy if statement to do the assignment.
March 3rd, 2008 at 9:33 am
I was wondering if I needed to escape the code.. Here's the code snippet:
<cfset IsItBig = (MyNum GT 10000)>