console ternary