title: While-Loop works but not the if statement?
body: <p>I have this <code>while</code> loop in my code. The loop seems to work fine since I printed my <code>i++</code> in the console. But for some reason it only checks my <code>if</code> statement the first time around. I can only add one title into the <code>NSMutableArray</code> called <code>sectionZeroTitleArray</code>. I have many arrays in this loop so it might get confusing. I will try my best to explain. </p>
  
  <p>Here is what I am trying to do:
  Loop through the length of an array(topicArray). If the array's(topicArray)is the same as this other array's(anotherArray) first object then add an object that has the same index(titleArray) as topicArray to a new MutableArray(sectionZeroTitleArray). </p>
  
  <p>I'm sure I did something stupid, maybe someone that hasn't stared at this all day can fix me up? Please and thank you.</p>
  
  <pre><code>while (i &lt; (topicArray.count)) {
    if ([topicArray objectAtIndex:i] == [anotherArray objectAtIndex:0]) {
     [sectionZeroTitleArray addObject:[titleArray objectAtIndex:i]];
    }
    NSLog(@"sectionZeroLoopCount: %d", i);
    i++;
   }
  </code></pre>