Using the ternary operator for assignments is cool and I agree, I sometimes miss it in Pascal. I love how some languages support left-hand ternaries in assignments.

Using the ternary operator as a "shorter if" is bad practice. You trade writing 6 characters for making the conditional harder to spot.