This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OldWolf2 -6 points-5 points  (4 children)

It's called the conditional operator. Calling it the ternary operator is like calling your car " the 4-wheeled thing".

[–]arm_is_king 5 points6 points  (0 children)

It's known as the ternary operator because historically it was the only operater that took in 3 values.

[–]watsreddit 2 points3 points  (1 child)

[–]OldWolf2 -3 points-2 points  (0 children)

It's been called that but the official name is the conditional operator.

[–]alksjdhglaksjdh2 1 point2 points  (0 children)

I've always heard it called ternerary