Description
Used to loop over elements in a structure by accessing key-value pairs.
Returns
Nothing
Category
Closure functions
Syntax
structEach(struct,function(key, value) {});
See also
Other closure functions.
History
ColdFusion 10: Added this function.
Parameters
Parameter |
Description |
---|---|
struct |
Name of the structure object. |
function |
Inline function executed for each key - value pair in the struct. |
key |
Key in a struct. |
value |
Value in a struct.
|