Whatever message this page gives is out now! Go check it out!

Variables

Last update:
May 18, 2026

Variables

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.  ColdFusion has several built-in variables that provide information about the server and ColdFusion tags return. For a list of the ColdFusion built-in variables, see  Reserved Words and Variables  in the CFML Reference. The following two characteristics classify a variable:
  • The scope of the variable, which indicates where the information is available and how long the variable persists
  • The data type of the variable value, which indicates the type of information a variable represents, such as number, string, or date See  Data types for a list of data types (which also apply to constant values). For detailed information on ColdFusion variables, including data types, scopes, and their use, see  Using ColdFusion Variables.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page