GerdW's second answer is probably preferred, because it is flexible and you can turn the repeat count into a control and vary it later if needed. The interleave solution is a bit limited because the repeat count is hardcoded. It also gets unhandy if the desired repeat is more than a handful or so. 😉
Since you are just starting out, here are two more alternative solutions, just as an exercise. They are probably slightly less efficient than then second answer by GerdW, but try to understand them because they teach you some fundamentals about arrays, loops, and indexing, etc. 🙂
The image shows GerdW's two solutions on top and two more alternatives as mentioned.
Message Edited by altenbach on 02-07-2007 09:45 AM