NSUserDefaults *prefs = [NSUserDefaults standardUserDefaults];
// getting the string
iapstring = [prefs stringForKey:@"stringVal"];
if (iapstring == nil) {
//Action
}
if (iapstring !== nil) {
//Action
}
The problem is in the 2nd if I get exptected expression before = token
Is this the right or wrong way to do it?