in reply to alternative to if statements

It's called a ternary conditional operator and is also found in perl.
HTH

_________
broquaint