Nested if..else... breaking parental flow?
<p>I'm running through a few scenarios with some IFs and I'm running into something that defies my logic/understanding.</p>

<p>Yes, I'm very low-level with programming, so maybe I'm royally screwing up something very rudimentary.</p>

<p>Anyway, I have something like so:</p>

<pre><code>if(condition==1) {
  if(conditionA==2) {
    // SAY I LOVE YOU
  } else {
    // SAY HEY BABY
  }
}

if(condition2==1) {
  if(conditionAA==2) {
    // SAY I LOVE YOU
  } else {
    // SAY HEY BABY
  }
}
</code></pre>

<p>Now, when condition1 and condition2 are both equal to 1 and conditionA and conditionAA do NOT equal 2, the else statements are fine.  However, when conditionA or conditionAA DO equal 2, the whole scenario breaks at that very spot.</p>

<p>For example, conditionA DOES NOT equal 2, the else fires and if conditionAA IS equal to 2 ,stuff breaks there.  If conditionA DID equal 2, the whole thing breaks right there.</p>

<p>I don't understand why :(</p>

<p>Thanks in advance.  Your advice will help me to restructure this mess. </p>
