Hmm, in all languages I know this is the only conditional operator though the common way to name it depends. In Java it's generally the conditional operator while in PHP it's commonly the ternary operator.
But I am really curious, do you know a language where there is another kind of conditional operator that is not a ternary?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You know it's called the conditional operator, right? It just happens to be a ternary operator (one that takes 3 operands)
Yes, I'm a hoot at parties! π
Don't forget to vote on your way out π
I just love it when I make mistakes βΊοΈ means I've learned something π
Hah good one, thanks
Hmm, in all languages I know this is the only conditional operator though the common way to name it depends. In Java it's generally the conditional operator while in PHP it's commonly the ternary operator.
But I am really curious, do you know a language where there is another kind of conditional operator that is not a ternary?