if conditional statement

works correctly now i will add if statement for another higher condition