I have an NSString and I want to check if it has a NULL value. If it does, then the if condition should execute. Else it should execut
NSString
NULL
if
Its better to be on safer side in checking null values , as it can lead to crash.
if (![string isKindOfClass:[NSNull class]] && string && string != NULL)