Jessey,

I think you are thinking about FOR loop in a different way.
Index variable is not an array variable.

So you need to go back to using FOR Index=1 TO 10.


Also, Index.1=OnTime and Index.0=OffTime do nothing in the code for you.
You are, I think, confusing with Arrays here.

Can you be more specific about your idea?
May be I got it not good enough.

--------------------------------