# <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>](script.md)

```
<cfreturn #any expr#>
```

# Attributes

| Attribute | Type | Required | Description | Default |
|-----------|------|----------|-------------|---------|
| expr | any | No | An expression; the result of the function from which this tag is called. |  |

# Examples

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








# Categories

[Components (CFCs)](../../categories/component.md), [Core CFML Language](../../categories/core.md)

# See Also

[<cfexit>](exit.md), [<cffunction>](function.md)