NSLog(@"%@",variable);
temp = @"(null)";
if([variable isEqualToString:temp])
This is the code that I use and as output I get
[4298:207] (null)
But of course for some reason they are not equal. It’s beyond me to understand this.
Both variables are of type NSString.
(null)is just the output the%@format specifier gives when the value isnil. What is invariableisnil, not the literal string(null)