I’m using a conditional statement such as
// isComplete is a BOOL value
if (![videoDictionary valueForKey:@"isComplete"]) {
// do important things here
}
The problem is that this statement doesn’t seem to be able to differentiate between NO, nil, and key doesn’t exist. How can I make sure that this condition is met ONLY when isComplete is NO, and not when isComplete is nil or isComplete doesn’t exist (no key)? How do I stop the false positives?
Do something similar to this: