CFSET Syntax Example

The code below creates the local variable, ProductName, and assigns it the text string value ColdFusion:

<CFSET ProductName="ColdFusion">
Note Note:The CFSET tag can also be used to create arrays and structures and other variable types, refer to the CFML Language Reference for ColdFusion Express for more information.