Ternary conditional operator

In computer programming, the ternary conditional operator is a conditional expression with three parts: the Boolean condition, the then-expression, and the else-expression. If the condition is true, the then-expression is evaluated; otherwise, the else-expression is evaluated; and the value is returned.

Source: Wikipedia — Ternary conditional operator (CC BY-SA 4.0)

Ternary conditional operator

In computer programming, the ternary conditional operator is a conditional expression with three parts: the Boolean condition, the then-expression, and the else-expression. If the condition is true, the then-expression is evaluated; otherwise, the else-expression is evaluated; and the value is returned.

Source: Wikipedia "Ternary conditional operator" · CC BY-SA 4.0

Share this article: X · Bluesky
Privacy Policy