I have an NSNumber I need to check if there is a value for it and if not set it to 0.
This is what I'm trying with no success.
Code:
if (theScore == nil) {
theScore = 0;
}
Code:
if (theScore < 0) {
theScore = 0;
}
Code:
if (theScore == NULL) {
theScore = 0;
}
no matter what I try it won't set to 0 just stays (null)