? is called the ternary operator
It is rarely used as it is easy to mis-read. It is usually better to use an if().