Ternary (Conditional Operator) Returns one of two values based on whether a boolean expression is true or false. Returns the value after the ? if the expression is true. Returns the value after the : if the expression is false.