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

Lesson 3. Variables and Functions > Creating Local Variables

Creating Local Variables

You're going to use your new knowledge of variables to add and format the current date so that it always appears on the front screen of the Web site. Creating this element is a great way to learn how to work with a simple and common variable, and also with several different functions. The shell of the site has already been set up, so now we'll use simple variables and functions to add the date component.

Local variables are the simplest type of ColdFusion variables. They are available to use only in the template in which they are created. Once ColdFusion has finished processing the template, the variables are gone and you can no longer use them. Being able to create these types of variables is essential to developing your ColdFusion templates. Fortunately, creating a local variable is easy.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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