Ternary Operator

The ternary operator is usually used as a shortcut for the if statement. Syntax: condition ? expr1 : expr2