It's ternary opertaor.
It evaluates the someBoolean
condition.
If it is true then pass the valueOne
to someValue
If it is false then pass valueTwo
to someValue
It is equal to:
if(someBoolean)
{
someValue = valueOne;
}
else
{
someValue = valueTwo;
}
This is a good link which explains about ternary operator