MACROMEDIA COLDFUSION 4.5-CFML LANGUAGE Reference page 34

Cfml language reference
Table of Contents

Advertisement

10
<P> The value of myVariable after incrementing through the loop
#Counter# times is: #myVariable#
</CFOUTPUT>
<!--- reset the variable and show the use of CFABORT --->
<H3>Example B: Use CFABORT to halt the instruction</H3>
<CFSET myVariable = 3>
<!--- now, perform a loop that increments this value --->
<CFLOOP FROM="1" TO="4" INDEX="Counter">
<!--- on the second time through the loop, CFABORT --->
<CFIF Counter is 2>
<!--- the processing is stopped, and subsequent operations
are not carried out by the CFAS --->
<CFELSE>
<CFSET myVariable = myVariable + 1>
</CFIF>
</CFLOOP>
<CFOUTPUT>
<P> The value of myVariable after incrementing through the loop
#counter# times is: #myVariable#
</CFOUTPUT>
</BODY>
</HTML>
<CFABORT>
CFML Language Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 4.5-CFML LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 4.5

Table of Contents