Is it possible to have an if statement enter a loop that can be broken after doing a few actions

while(TRUE) {
    button = readButton(); // you need to update button or the loop will never exit 
    if (button == HIGH) {
          break;
    }
}

It sure would be nice is we had the current full code of the failed attempts.

2 Likes