...with convoluted code like this: Var k = a ? (b ? (c ? d : e) : (d ? e : f)) : f ? (g ? h : i) : j; 1 Often called "the ternary operator," but in fact it's just a ternary operator [an operator accepting three operands].
In mathematics, a ternary operation is an n-ary operation with n = 3. A ternary operation on a set A takes any given three elements of A and combines them to form a single element of A. An example of a ternary operation is the product in a heap.
Ternary operators have three basic parts. The first part is the condition. The condition goes in parentheses. After a question mark...