coldfusion Variables Using cfset


Example

You can set a ColdFusion variable using the <cfset> tag. To output the variable, you need to surround the variable name with hash # symbols and enclose it within <cfoutput> tags.

<cfset variablename="World!">
<cfoutput>
    Hello #variablename#
</cfoutput>