title: comparing indexPaths in a loop iphone
body: <p>I am trying to compare an index path in my didSelectRowAtIndexPath delegate method with an array of index paths. </p>
  
  <pre><code>for (n=0; n &lt; [tempMutArrray count]; n= n+1){
  
       NSComparisonResult *result = [indexPath compare:[tempMutArray objectAtIndex:n];
  
  //What I want to do is is write an if statement that executes a certain block of code 
  //if the two index paths are equal, but I cant figure out how to work with an 
  //NSComparisonResult. 
  
  } 
  </code></pre>