in reply to if statement confusion

Thank you :)