| Contents > Developing ColdFusion MX Applications > Writing and Calling User-Defined Functions > Creating user-defined functions > Creating functions using tags |
|
|
|
|
||
You use the cffunction tag to define a UDF in CFML. The cffunction tag syntax has the following features and limitations:
cffunction tag provides attributes that enable you to easily limit the execution of the tag to authorized users or specify how the function can be accessed.The following code uses the cffunction tag to define the exponentiation function:
<cffunction name="twoPower" output=True> <cfargument name="exponent"> <cfreturn 2^exponent> </cffunction>
For more information on how to use the cffunction tag to define a function, see Defining functions using the cffunction tag.
|
|
||
| Contents > Developing ColdFusion MX Applications > Writing and Calling User-Defined Functions > Creating user-defined functions > Creating functions using tags |
|
|
ColdFusion 9 | 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/udfs6.htm