int latitude = 90;
//цепочка тернарных операторов работает как
//выражение if
NSString *location =
latitude == 0 ? @"Equator" :
latitude == 90 ? @"north Pole" :
latitude == -90 ? @"south Pole" :
@"not at the Equator or Pole";
//location is "north Pole"