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

Understanding Functions

To understand how functions work, it's helpful to think of them as real-time manipulators of data. I say real-time because the manipulation occurs at the moment a user views a template page including your expertly coded function.

Functions use the format SomeFunction(SomeVariable), where the variable you want to manipulate is placed between the parentheses. When you use functions within <CFOUTPUT> tags, you enclose the entire function string in hash marks (rather than enclosing the variable), like this:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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