Servo Motor timed reaction

I tested the code.
Used the serial monitor to check the value of the "condition1" variable.

if (condition1 == 1000){
servo1.write(0);
Serial.print("condition = ");
Serial.println(condition1);
}

The serial monitor didn't display the value of "condition1" even after pressing the button.
I checked that "button1" is HIGH while being pressed when i tested the code.