Perché usi la stessa variabile per due confronti differenti, e alla fine uno dei due ci rimetti.
O usi IF/ELSE IF/ELSE oppure usi lo switch().