Using ColdFusion Variables
Macromedia 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.
This chapter describes how to create and use ColdFusion variables. It includes the following information:
-
How variables can represent different types of data
-
How the data types get converted
-
How variables exist in different scopes
-
How the scopes are used
-
How to use variables correctly
Contents
- Creating variables
- Variable characteristics
- Data types
- Using periods in variable references
- Data type conversion
- About scopes
- Ensuring variable existence
- Validating data
- Passing variables to custom tags and UDFs
View comments in LiveDocs