• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 21. Scripting > Variable Assignment

Variable Assignment

In CFML, you assign variables by using the <cfset> tag. In a <cfscript> block, you use a simple assignment statement followed by a semicolon, as follows:

<cfscript>
 // simple variable assignments
 x=1;
 y=2;
</cfscript>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint