Used inside a cftry tag. Code in the cffinally block is processed after the main cftry code and, if an exception occurs, the cfcatch code. The cffinally block code always executes, whether or not there is an exception.

This tag must have a body.

This tag is also supported within <cfscript>

<cffinally><!--- body ---></cffinally>

This tag does not use any attributes.


Tag Example

  <cfset a = 2/0>
  <cfdump var="#a#" />
  <cfcatch type="any">
    Caught an error.
    This is from cffinally.

Script Example

          a = 2/0
        catch(any e){
            writeOutput("Caught an error.");
			writeOutput("This is from finally.");   

See also