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 is nil. What is in variable is nil, not the literal string (null)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With