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

Chapter 9. CFML Basics > Revisiting Variables

Revisiting Variables

The last tag this chapter discusses is <CFPARAM>. You won't use this tag here, but in preparation for the next chapters, I'll explain what this tag is and how it is used.

Earlier in this chapter, you used a function named IsDefined(), which is used to check whether a variable exists. You used IsDefined() to simply check for a variable's existence, but what if you wanted to create a variable with a default value if it did not exist? You could do something similar to this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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