setEach

Calls a function for each element of a set.

setEach(set, callback) → returns void

Member Function Syntax

mySet.each(callback)

This function requires Adobe ColdFusion 2025.0.8 and up.  Not supported on Lucee, etc.

Argument Reference

set any
Required

The set.

callback function
Required

Function called with each element.

Links more information about setEach

Examples
Sample code invoking the setEach function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub