This article is about the use of a ?: operator as a binary operator. For use as a ternary operator, see ?:. Elvis Presley, whose hair resembles the operator viewed sideways In certain computer programming languages, the Elvis operator, often written ?:, is a binary operator that evaluates its first operand and returns it if its value is logically true (according to a language-dependent convention,

