I am learning Objective C for ios programming and ran into the following line of code in the getter method of a property of a card called suit:
-(NSString *)suit
{
return _suit ? _suit: @"?";
}
This is supposed to return "?" if the suit is nil but I'm not sure how this line works. What does the ? in "return _suit ?..." mean? How does this code function and how is it interpreted by the computer?