Name
cfreturn
Synopsis
[<cfcomponent>] <cffunction> ... <cfreturn> </cffunction> [<cfcomponent>]
Returns an
evaluated expression or variable from a tag-based user-defined
function or ColdFusion Component (CFC) method. This tag provides the
same functionality as the Return
statement in
CFScript-based UDFs. Only one cfreturn
tag may be
used per function.
Attribute
-
expression
Expression to evaluate and return. Any valid ColdFusion expression may be used (evaluated expression, variable name, string or numeric literal, etc.). Required.
Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.