tracker issue : CF-4198247

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

structEach() should decide to break from return value

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotWorthEffort

Reporter/Name(from Bugbase): Henry Ho / Henry Ho ()

Created: 01/10/2017

Components: Language

Versions: 11.0

Failure Type: Others

Found In Build/Fixed In Build: /

Priority/Frequency: Normal /

Locale/System: / Win All

Vote Count: 0

structEach() currently does not care what the callback returns.  It'd be very useful if it can terminate the iteration if the callback return false.



StructSome() & StructFilter() can be used to achieve the use case mentioned in the bug. StructSome was introduced in ColdFusion 2018 Update 5 ,StructFilter was introduced in ColdFusion 10. Hence closing the bug.
Comment by Suchika S.
31595 | October 15, 2019 10:24:02 AM GMT