Peter Seeger wrote:I want someting in a for loop to run through every time (Yes, that works!) But the variable that you are counting up to end the loop at some point should only increase e.g every five times.
Normally when you write a for loop with a counter as its index, the loop-ending value is constant. So perhaps it's the index variable which you want to increase every five times? But that doesn't make any sense to me either; do you really want the index variable to go 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, ... and so on? I suspect not.
In which case I'm stuck. Your code doesn't help, but that isn't surprising because you tried to write it to explain your problem even though writing the code is the thing you're having a problem with. So I agree with Carey -- an English description of what you want to do would be a good start. An English description which doesn't use the words "array" or "list" would be even better.