?:

In computer programming, ?: is a ternary operator that is part of the syntax for basic conditional expressions in several programming languages. It is commonly referred to as the conditional operator, inline if (iif), or ternary if. An expression a ? b : c evaluates to b if the value of a is true, and otherwise to c. One can read it aloud as "if a then b otherwise c". It originally comes from CPL, in which equivalent syntax for <i>e</i><sub>1</sub> ? <i>e</i><sub>2</sub> : <i>e</i><sub>3</sub> was <i>e</i><sub>1</sub> → <i>e</i><sub>2</sub>, <i>e</i><sub>3</sub>.

?:

In computer programming, ?: is a ternary operator that is part of the syntax for basic conditional expressions in several programming languages. It is commonly referred to as the conditional operator, inline if (iif), or ternary if. An expression a ? b : c evaluates to b if the value of a is true, and otherwise to c. One can read it aloud as "if a then b otherwise c". It originally comes from CPL, in which equivalent syntax for <i>e</i><sub>1</sub> ? <i>e</i><sub>2</sub> : <i>e</i><sub>3</sub> was <i>e</i><sub>1</sub> → <i>e</i><sub>2</sub>, <i>e</i><sub>3</sub>.