ternary
A group of three things; a trio, threesome or tierce.
The Holy Trinity.
obsolete
And albeit these thynges be waighty and truthes of great importance, yet (by the infinite goodnes of the Almighty Ternarie,) Artificiall Methods and easy wayes are made, by which the zelous Philosopher, may wyn nere this Riuerish Ida, this Mountayne of Contemplation […] .
The ternary operator.
Although this code is technically correct, you should be cautious when using ternaries. Many developers actually don't like using ternaries because it's easy to miss small details or create quirky behaviors.
Where it comes from
From Late Latin ternārius (“consisting of three things”), from ternī (“three each”).
Adapted from the Wiktionary entry ternary (CC BY-SA 4.0).