Problem in String camparisson ...!
<p>here is my code :</p>

<pre><code>NSUInteger f;
  for (f = 0; f &lt; [appDelegate.books count]; f++) {
    check = [appDelegate.books objectAtIndex:f];

 checkthis = check.LotteryNumber;


        mystring = check.LotteryNumber;
 NSLog(@"Dynamic Value: %@",mystring);
 NSLog(@"Static Value: %@",checkthis);

 if (checkthis == mystring) {
        found = YES;
        break;
    }
 printf("In LOOP");
}
if ( found ) {
    // do found
 NSLog(@"Found");
} else {
    // do not found
 NSLog(@"not Found");
}


 //if (checkthis == mystring) {
</code></pre>

<p>in above line if i place checkthis on both side , its working , but when i am taking a dynamic value its not working..
i also tried like this </p>

<pre><code>if(checthis isEqualToString mystring)
</code></pre>

<p>same problem here ....</p>

<p>Thanks in advance</p>
