i am using if else to see the condition but it always execute else
int mytestcount=rowCount;
NSLog(@"My Test ROw Count IS %d",mytestcount);
if (mytestcount=0) {
NSLog("No Data To Upload");
}
else {
[Coffee getInitialDataToDisplay:[self getDBPath]];
}
my if is true then also it excutes else i do not know why when rowCount is 0
= is the assignment operator, == is the comparison operator.
So your code fragment: