how to write this expression if theres nested if else blocks?
It’s called ternary because it has three operands: the value for the true case, the condition, and the value for the false case. You should neither nest nor combine these expressions for readability reasons.
1 Like