If you do NOT change the value of input1 or input2 inside of the loop, then the if condition will always be true and you will continue to have the message displayed.