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

Chapter 2.  Overview of CFML  >  Using ColdFusion MX Functions

Using ColdFusion MX Functions

A function executes an action and returns the result as output. Functions help reuse the code, leading to modular programming. You create a function once and then call it in multiple instances in a program by using the function name.

Functions may need input data when they’re referenced or called. This input data is called a parameter or an argument. Variables, expressions, and other functions can be passed as arguments. A function typically returns a single value, which can be a simple datatype, such as a number or a string, or a complex datatype, such as an array.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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