if else statement not working properly

Printable View