in reply to Re^2: if else in the other way
in thread if else in the other way

I agree ;), and I agree that this is debatable, I am a fan of not repeating commands while using a ternary operator too, in fact, avoiding ternary operators all together should my code be maintained by someone else, however, my answer was relative to this simple requirement put forth by the OP, breaking jwkrahn's reply down for him/her.


Excellence is an Endeavor of Persistence. A Year-Old Monk :D .