ForEach set Do command

 ForEach set [Do]
   commands
 Next

Iteration over object array. The set is an array of objects, such as Ship or Planet. The loop will iterate through all objects in that set, and execute the command or command list for each of them.

For example,

 ForEach Minefield Do
   If LastScan < Turn-10 Then Delete
 Next

will delete all minefields not seen within the last 10 turns.

Since: PCC 1.0.6, PCC2 1.99.9

See also: Break, Continue, For, Do, Count(), Find()

This is a testing version.
It may be incomplete, and have more bugs (or features) than the public live version at planetscentral.com.