Contents |
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.
<cfcontinue>
The CFCONTINUE tag has no attributes.
Stop the current iteration of the loop but continue with the next loop iteration:
<cfcontinue>
<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>
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.