OpenBD Wiki

From OpenBD
Jump to: navigation, search

CFCONTINUE

Contents

Description

The CFCONTINUE tag is used within a CFLOOP block to terminate the current iteration of a loop, but continue the next iteration of the loop as opposed to breaking out of the loop entirely.

Syntax

<cfcontinue>

Attributes

The CFCONTINUE tag has no attributes.

Usage

Stop the current iteration of the loop but continue with the next loop iteration:

<cfcontinue>

Example

<cfloop index="x" from="1" to="10">

 <cfif x eq 1>
   First Element
   <cfcontinue>
 </cfif>

 Now we can do something with elements 2-10

</cfloop>

Notes

CFCONTINUE is used within a CFLOOP block to terminate the loop's current iteration, but continue with the remaining loop iterations. This differs from CFBREAK which terminates all remaining iterations of the loop, continuing execution after the closing CFLOOP tag.

See Also

Article on CFCONTINUE


Personal tools