The ternary expression is used to conditionally assign a value . It’s called ternary because it has three portions: the condition, the value if the condition is true, and the value if the condition is false.
The ternary expression is used to conditionally assign a value . It’s called ternary because it has three portions: the condition, the value if the condition is true, and the value if the condition is false.