if statement doesn't behave correctly

Printable View