If statement not working right

Printable View