for each loop iterates over the values of an array or object.for each ( var in ) { }
For example:
var list = ["a","b","c"]; for each (var val in list) { write(val); }Writes "abc".
This is different from for-in-loops, which iterates over the properties or indices rather than the values.
For-each-in can also be used in array comprehensions.