tracker issue : CF-4164408

select a category, or use search below
(searches all categories and all time range)
Title:

CFBREAK and CFCONTINUE should be able to work on different nested levels

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/BugVerified

Reporter/Name(from Bugbase): / (Shawn Kallner)

Created: 06/14/2016

Components: Wishlist

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: CF2016_Update1 / 2020.0.0.317062

Priority/Frequency: Trivial / All users will encounter

Locale/System: ALL / Windows 10 64 bit

Vote Count: 1

{code:java}
<cfloop query="q1">
<cfloop query="q2">
<cfloop query="q3">
<cfif moveOn>
<cfcontinue level="3"> // fires continue on the first loop
</cfif>
</cfloop>
</cfloop>
</cfloop>
{code}


----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4164408

External Customer Info:
External Company:  
External Customer Name: Shawn Kallner
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Also would be happy with name param on cfloop, and then it can be called out like <cfcontinue loop="MyLoop">
Comment by External U.
2390 | June 14, 2016 03:28:36 PM GMT
Hi Adobe and Shawn, This is a duplicate of CF-3041787, which is marked ToFix. It also covers giving each child loop its own CurrentRow and RecordCount. Thanks!, -Aaron
Comment by External U.
2391 | August 27, 2016 10:09:51 AM GMT
CF-3041787 also permits scoping of dynamic query loops: <cffunction name="myFunction"> <cfreturn queryNew("myCol", "", [["foobar"],["foo.bar"]])> </cffunction> <cfloop query="#myFunction()#" name="myLoop"> <cfoutput>#myLoop.myCol#</cfoutput> </cfloop> Thanks!, -Aaron
Comment by External U.
2392 | August 27, 2016 10:20:46 AM GMT