still having trouble with a fault window, if sensor never gets found, I'm new to

still
 having trouble with a fault window, if sensor never gets found, I'm new
 to programming C++
// **********************************************************************************
//   vacuum capture of sign sub routine- turn on vacuum and check for capture sign
//
int VACUUMcapture() {
    P1.writeDiscrete(HIGH,VACUUM); //vacuum generator solenoid 1=vacuum on / 0= vacuum off
  for (x = 0; x < 60; x ++) // fault timer 60*50mS = 3 second window or FAULTzone
  {   
    VACUUMcaptureSIGN = P1.readDiscrete(VACUUMsignDETECT); //vacuum cup sign detection sensor  1=sign present / 0= not-sign present
    if (VACUUMcaptureSIGN == true ) {     // exit loop on vacuum has captured sign sensor detected
      x = 0;     
      break; 
    // else;
      //return      
      FAULTfatal = 1;
    }
    delay(50);
   // FAULTfatal = 1;
  }
} 
// **********************************************************************************

, my question is where to put the FAULTfatal flag if the timer goes to 60, the 3 second window has been exceeded, this code work if sensor found

duplicate post