Using ColdFusion Variables

Adobe ColdFusion variables are the most frequently used operands in ColdFusion expressions. Variable values can be set and reset, and can be passed as attributes to CFML tags. Variables can be passed as parameters to functions, and can replace most constants.

To create and use ColdFusion variables, you should know the following:

  • How variables can represent different types of data

  • How the data types get converted

  • How variables exist in different scopes

  • How scopes are used

  • How to use variables correctly