Code interpretation project

It's a couple of if statements, made more confusing. Look up the C++ Ternary operator.