Reply #5 said: In C/C++ you'd use a while loop:
Code:
while(StarterIn == HIGH)
{
// update StartIn here by some means
}
If StartIn is a variable (as implied in the code above) then you'd need to either do something inside the loop that caused it to become HIGH when you wanted to exit the loop.....
I would not normally be so picky, but since the OP said he could not understand this, the last sentence quoted above should actually say "do something inside the loop which caused it ( StartIn ) to CEASE TO BE high, when you wanted to exit the loop..."