I need a one sentence "rule of thumb" that explains how and when to use #'s
in code:

Old way:
<cfset var1 = #RandRange(1,6)#> <-- the #'s are not needed

New way:
<cfset var2 = RandRange(1,6)> <-- cleaner, faster, better

There are obvious exceptions to this rule (within CFOUTPUT, and within
certain tags like <cfloop from="#var1#"...), and the exceptions should be
included in the rule of thumb.

Anyone know how to say it cleanly?

Michael Buffington
[EMAIL PROTECTED]
(714) 556-3890 x222
http://www.price.com 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to