CFabort - How to stop processing of a coldfusion page at the tag location

cfabort - stop the processing of a coldfusion page at the tag location

cfabort.cfm


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfabort tag example: how to stop the processing of a coldfusion page at the tag location</title>
</head>

<body>
<h2 style="color:Crimson">cfabort Tag Example</h2>

<cfloop from="1" to="25" index="LoopCounter" >
 <cfoutput>
  <b>Current LoopCounter:</b> #LoopCounter#
        <br />
        <cfif LoopCounter EQ 5>
         <cfabort showerror="cfabort call at the position 5">
        </cfif>
 </cfoutput>
</cfloop>

</body>
</html>





More ColdFusion examples