Repeating only a specific condition during a loop

Funky_Arduino:
Hi Guys,

i am hoping someone can help me Repeating only a specific condition during a void loop. Basically, i have a set of conditiond within the
void loop sections, and i want to repeat the bottom part the void loop a specific number of times. how would i go about that ?

Set up a variable, a global byte (or static byte inside loop()) and change the value however you want the condition to run next time through loop.
If you want something to run 3 times then you can make the variable = 3 in setup() then each time through loop() check if it's > 0. If so then run the specific code and subtract 1 from the variable. 3-2-1, it runs, 0 it doesn't run and the variable doesn't change (unless you code for that on say, a button press).
All that without -another- set of braces and indents to go with a for-next and you get code that's easier to modify.