<cffunction>
is used in ColdFusion Markup Language cfml to create user defined functions. The basic syntax is
<cffunction name="myFunc" returntype="string" output="false">
<cfreturn "Hello, World!">
</cffunction>
Functions may be created as a global function or as apart of an object (cfc). Functions typically include business logic and not presentation logic.
Functions can also be defined in <cfscript>
via
string function myFunc() output="false" {
return "Hello, World!";
}
Resources
https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-f/cffunction.html