my code runs in an endless loop by design but there is a section of it that i would only like to run X times. that section is within the endless loop and it must be there.
if i use a for loop and set i to X it will only loop X times BUT then when the entire code loops around, that for loop will go for another X times.
follow me?
how can i make a certain part of the code only loop X times?
i have a call_back function as well, if that helps.