Whatever message this page gives is out now! Go check it out!

cfcontinue

Last update:
May 18, 2026

Description

Used within a cfloop tag. Returns processing to the top of a loop.

Category

Syntax

<cfcontinue>

See also

cfabortcfbreakcfexecutecfifcflocationcfloopcfthrowcftry;  cfloop and cfbreak in the Developing ColdFusion Applications

History

ColdFusion 9: Added the tag.

Tag example

 
<cfloop index="i" from="1" to="5">
    <cfoutput>#i#</cfoutput> is
        <cfif i mod 2>
            ODD
            <cfcontinue>
        </cfif>
            EVEN
</cfloop>

Script example

 
<cfscript>
    for (i=1; i <= 5; i++){
        writeOutput("#i# is ");
        if (i mod 2){
            writeOutput("ODD");
            continue;
        }
    writeOutput("EVEN");
}
</cfscript>
Either version of the code above outputs:
1 is ODD

2 is EVEN

3 is ODD

4 is EVEN

5 is ODD

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page