<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
|
edit
An expression; the result of the function from which this tag is called. |
Examples
edit<cfset result =testFun() >
<cfdump var="#result#" />
<cffunction name="testFun" returntype="any">
<cfset str="I Love Lucee!">
<cfreturn str>
</cffunction>
See also
- Components (CFCs)
- Core CFML Language
- <cfexit>
- <cffunction>
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)