![]() ![]() ![]() |
||
|
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 variables 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 Developers Guide.
|
||
![]() ![]() ![]() |