If statements not working as planned

Printable View