ForEach would only work with an array of some sort, which mIRC doesn't have.

The closest it could do is enumerate a function like $nick(#chan,%i)... in which case you can do this.

var %i = 1
WHILE $nick(#chan,%i) {
echo -a $ifmatch
inc %i
}

Easy Pie.

ForEach could never specify which parameter of $nick should be incrimented.

- Raccoon