ColdFusion® MX: From Static to Dynamic in 10 Steps By Barry Moore
Table of Contents
Step 2. Using Variables
According to www.whatis.com, a variable is "a quantity capable of assuming any of a set of values." However, as mentioned in Step 1, you can think of a variable as a container that holds information. You create variables by giving them a name and assigning them some value. ColdFusion Server uses server memory to store these values until either you call for them by using the variable name or they are no longer needed, in which case they are deleted.
Two broad categories of variables are used in ColdFusion: simple variables and complex variables. In this step, we will focus mainly on simple variables. Complex variables will be discussed in Step 10, "Using Lists, Arrays, and Structures."