how to pause a loop

hi there what i am trying to do when this code runs i would like it to stop and wait for the reset button to go HIGH before it continues how can i do this?

if (digitalRead(photo_pressure)==LOW) {
   digitalWrite(lockoutled, HIGH);
   digitalWrite(solenoid, LOW);
  if (digitalRead(resetbutton)==HIGH); {
  digitalWrite(lockoutled, LOW); } }

thanks Joe

If you want to "stop" the loop, simply do nothing while the condition is true.

// Wait until resetbutton becomes HIGH
while (digitalRead(resetbutton) != HIGH) {

Also, note that you have a semicolon after your second if() statement; this means the code in the brackets will always be executed.

nise one thanks for you help