I want to compare two strings where I want nil to be equal to a blank string (@""). Right now I'm doing this, which works fine:
if ([self.firstName ? self.firstName : @"" isEqualToString:anotherContact.firstName ? anotherContact.firstName : @""]) {
// They are equal.
}
But there seems like there might be something simpler that I'm missing.
I'm not looking for case sensitivity here. If case is different then the test should fail.