| Contents > Developing ColdFusion MX Applications > Writing and Calling User-Defined Functions > Creating user-defined functions > Creating functions using CFScript |
|
|
|
|
||
You use the function statement to define the function in CFScript. CFScript function definitions have the following features and limitations:
The following is a CFScript definition for a function that returns a power of 2:
<cfscript>function twoPower(exponent) {return 2^exponent;}</cfscript>
For more information on how to use CFScript to define a function, see Defining functions in CFScript.
|
|
||
| Contents > Developing ColdFusion MX Applications > Writing and Calling User-Defined Functions > Creating user-defined functions > Creating functions using CFScript |
|
|
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/udfs5.htm