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

Variables and Scopes

A variable is a name that represents data, in the same way that a label on a drawer represents the contents of the drawer. The value of the data is the contents of the drawer. In ColdFusion, variable values can be set and reset with cfset, or set to an initial default value with cfparam. Variables can be passed as attributes to CFML tags, or as parameters to functions.

Here's a typical cfparam tag:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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