Everything About ___
Live briefing

Everything about Elvis operator

Binary operator in computer programming

In certain computer programming languages, the Elvis operator, often written ?:, is a binary operator that returns the first operand if its value is logically true or returns its second operand if the first operand is not true. That is, it is a short-circuit OR, which returns its first truthy operand. Wikipedia →

đź§­ Start here: a 6-step reading path

  1. Read the overview: Elvis operatorA 5-minute orientation
  2. Pick up a classic book: Elvis And The Grateful DeadThe most-reprinted book on the subject
  3. Go sideways: Null coalescing operatorA closely related topic
  4. Go sideways: Ternary conditional operatorA closely related topic

đź“– Definitions

No dictionary entry for this exact phrase.

🏆 Landmark papers (most cited)

📚 Books worth reading

Ranked by number of editions on Open Library, a rough measure of how lasting a book is.

đź”— Related topics