Pound Signs In General Expressions - MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference

Cfml language reference
Table of Contents

Advertisement

584
CFML Language Reference
All of the above statements result in errors. As a general rule, never put pound signs
around function arguments.

Pound signs in general expressions

Allaire recommends that pound signs be used only where necessary. The following
example demonstrates the preferred method for referencing variables.
<CFSET SomeVar=Var1 + Max(Var2, 10 * Var3) + Var4>
It is a cleaner and more efficient method.
In contrast, note the following example, which uses pound signs unnecessarily:
<CFSET #SomeVar#=#Var1# + #Max(Var2, 10 * Var3)# + #Var4#>

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Coldfusion 4.5

Table of Contents