double equals added to if statement