<cfreturn>

Returns result values from a component method.

Contains an expression returned as result of the function.

This tag cannot have a body.

This tag is also supported within <cfscript>

<cfreturn #any expr#>
Attribute Description
expr
any, optional

An expression; the result of the function from which this tag is called.

Examples

<cfset result =testFun() >
<cfdump var="#result#" />
<cffunction name="testFun" returntype="any">
	<cfset str="I Love Lucee!">
	<cfreturn str>
</cffunction>

See also