• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Working with Variables and Ex... > Understanding Variables and Expressi...

Understanding Variables and Expressions

Simple in concept, ColdFusion variables are key to building dynamic Web pages. They provide placeholders in which to put different values. ColdFusion variables are used in expressions. Expressions are generally used in two ways: inside a <cfoutput> block to build output on a Web page, and to the right of equals signs (=) in <cfset> statements.

NOTE

Remember the following rules when naming ColdFusion variables:

  • Names must contain letters, numbers, and the underscore characters only.

  • Each name must start with a letter.

  • Spaces and any special characters besides the underscore are not allowed.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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