Other ternary operators besides ternary conditional (?:)

Posted by Malcolm on Stack Overflow See other posts from Stack Overflow or by Malcolm
Published on 2010-06-08T11:58:45Z Indexed on 2010/06/08 12:02 UTC
Read the original article Hit count: 236

The "ternary operator" expression is now almost equivalent to the ternary conditional operator:

condition ? trueExpression : falseExpression;

However, "ternary operator" only means that it takes three arguments. I'm just curious, are there any languages with any other built-in ternary operators besides conditional operator and which ones?

© Stack Overflow or respective owner

Related posts about programming-languages

Related posts about operators