It is ternary operator, like an if/else statement.
if(a > b) {
what to do;
}
else {
what to do;
}
In ternary operator it is like that:
condition ? what to do if condition is true : what to do if it is false;
(a > b) ? what to do if true : what to do if false;