If statement not executing correctly

Printable View