In ColdFusion, you specify number signs (#) to denote functions and variables within a string of text. You use number signs to show the results of the function or variable on the page. Number signs instruct the ColdFusion server to evaluate the function (or variable) between the number signs and display the value. The value of the function (or variable) appears in the browser as a result.
The following are some common ways to use number signs:
<cfoutput> Hello #variables.my_first_name# </cfoutput>
If you omit the number signs, the text, not the value, appears on the page.
cfset tag to assign one variable's value to another value:
<cfset my_full_name = variables.my_first_name & " " & variables.my_last_name>
<cfoutput> ##1: Your name. </cfoutput>
The result is the following output:
#1. Your name.
For more information and examples on using number signs in expressions, see ColdFusion MX Developer's Guide.
ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting
Version 7
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000087.htm