My if statement isnt working properly

Fixed thanks to pink_eye
My if statement isnt working properly

Fixed thanks to pink_eye