Err... Could you please explain it with more detail, probably with an example I couldn't make out what exactly you are asking for...
For every object, you can have an instance variable, that turns 0 when loop is running and 1 when loop is not running.
Then, after the completion of each loop, you can loop through the objects and count the number of 1's. When none of them is 1, you can do next iteration... I think...