Revised If-Else

did the wrong problems the first tme