I have an action inside a loop that I would like to repeat three times in a row.
Is this possible?
Yes
Yes.
for (x=0; x<8; x=x+1){
// do x action
for (y=0; y<3; y=y+1){
// do action 3 times
} // end y
} //end x
You can theoretically nest anything arbitrarily deep, although humans and compilers
each tend to have their cognitive limits. Good style suggests re-factoring code that's
too long or too deeply nested into more, smaller, functions.
Nesting depth of two is just dandy though.
This helps
Thanks!!
arbitrarily deep
as long as you don't run out of SRAM
Thanks again.
Code is working perfect now!!