Ternary operators is an actively used design pattern. In computer science, a ternary operator is an operator that takes three arguments.

?Years Old

Languages with Ternary operators include javascript

Example from javascript:

let i = true ? 1 : 0

Last updated August 9th, 2020

Edit Ternary operators on GitHub