Use eval for shortened ternary operator.