Add ternary expression.