in reply to Re: How to get this not the usual round robin looping
in thread How to get this not the usual round robin looping

Wow... homework never had it so easy.

if the OP understand half of given solutions is valid homework.
L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.