? : Operator ("M" Reference)
[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]
The ?: operator is a ternary operator that evaluates exactly one of the expression operands.
Operator Description
The ternary ?: operator takes the following form:
Logical ? Expression : Expression
If the left operand is true, then the middle operand is evaluated. If the left operand is false, then the right operand is evaluated. Note that there is no scenario in which both the middle and right operands are evaluated, because their evaluation is mutually exclusive. The value of this expression is the value of the evaluated expression.