Did you know Cards Games

Conditional operator

Conditional operator: ternary operator "x ? y : z" in many programming languages, whose value is y if x evaluates to true and z otherwise. No. 230,482 of 4,515,532 cards by fame.

Conditional operator: quick facts

Description
Ternary operator "x ? y : z" in many programming languages, whose value is y if x evaluates to true and z otherwise
Rarity in the game
Epic card
In its topic
No. 4,417 of 15,859 “Computing” cards
Wikipedia
article in 13 languages
Wikidata
Q2984985
Wikipedia page views
about 3,500 a month (November 2025 – October 2026)

Fame score: Wikipedia page views (July 2015 – October 2026, 39 languages). Updated .

Conditional operator
Photo: Pauliczczi, CC BY-SA 4.0 (Wikimedia Commons)

Conditional operator: summary

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. Thus it is a non-strict operator, like other conditional expressions.

Source: Wikipedia (CC BY-SA 4.0)

More cards: Computing

  • Calibre — No. 2,209 of the “Computing” cards
  • Over-the-air update — No. 4,517 of the “Computing” cards
  • Bitstamp — No. 5,417 of the “Computing” cards
  • EURid — No. 8,834 of the “Computing” cards

The best-known of the 15,859 “Computing” cards

This card's topics

“Conditional operator” is one of the 4,515,532 cards of Did you know Cards, the free Wikipedia card game where you learn as you play: every card is a piece of knowledge from Wikipedia. Open boosters, complete your albums and challenge other players to duels.