About 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:

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.


ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting

Version 7

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00001004.htm