Exponentiate and Log in Else-If format