Name

cfset

Synopsis

                  
                  <cfset scope.varname=expression>
<cffunction>
  [<cfset Var scope.varname=expression>]
  ...
</cffunction>

Sets the value of a ColdFusion variable. As of ColdFusion MX, the cfset tag can be used within a cffunction container to create variables local to the function.

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.