How to go to 'else if' loop after 'if' condition is sucessfully entered
<p>Is there any way to go to the <code>else if</code> body after the <code>if</code> condition is sucessfully entered?
Is there any way to go to the <code>else if</code> body after the <code>if</code> condition is sucessfully entered?</p>

<pre><code>    if ($axisX == $axisXOne) {   /* Main IF Statement */
            if($axisY =='0' &amp;&amp; $axisYOne == '1') { $second = '2';}
        else if($axisY =='0' &amp;&amp; $axisYOne == '2') { $second = '1';}
        else if($axisY =='1' &amp;&amp; $axisYOne == '0') { $second = '2';}
        else if($axisY =='1' &amp;&amp; $axisYOne == '2') { $second = '0';}
        else if($axisY =='2' &amp;&amp; $axisYOne == '0') { $second = '1';}
        else if($axisY =='2' &amp;&amp; $axisYOne == '1') { $second = '0';}

            if (($_POST['button'.$axisX.$second] == null) &amp;&amp; ($curVal != $axisX.$second)){ /* Inner IF Statement */
             echo $axisX.$second; 
             }
    }   
    else if ($axisY == $axisYOne) {  /* Main ELSE IF statement */
        if($axisX =='0' &amp;&amp; $axisXOne == '1') { $second = '2';}
        else if($axisX =='0' &amp;&amp; $axisXOne == '2') { $second = '1';}
        else if($axisX =='1' &amp;&amp; $axisXOne == '0') { $second = '2';}
        else if($axisX =='1' &amp;&amp; $axisXOne == '2') { $second = '0';}
        else if($axisX =='2' &amp;&amp; $axisXOne == '0') { $second = '1';}
        else if($axisX =='2' &amp;&amp; $axisXOne == '1') { $second = '0';}
            if($_POST['button'.$second.$axisY] == null) {/* Inner IF Statement */
              echo $second.$axisY;
             }
    }
    else if ($xAxis == $yAxis &amp;&amp; $xAxisOne == $yAxisOne) {  /* other Main ELSE IF Statement*/
            if($comVal[0] == '00' &amp;&amp; $comVal[1] == '11') { $diagon = '22';}
        else if($comVal[0] == '00' &amp;&amp; $comVal[1] == '22') { $diagon = '11';}
        else if($comVal[0] == '11' &amp;&amp; $comVal[1] == '00') { $diagon = '22';}
        else if($comVal[0] == '11' &amp;&amp; $comVal[1] == '22') { $diagon = '00';}
        else if($comVal[0] == '22' &amp;&amp; $comVal[1] == '00') { $diagon = '11';}
        else if($comVal[0] == '22' &amp;&amp; $comVal[1] == '11') { $diagon = '00';}
            if($_POST['button'.$diagon] == null) {
            echo $diagon;
            }
    }
</code></pre>

<p>If Main IF Statement evaluates true and Inner IF Statement evalautes false then go to Main ELSE IF ladder. If Main IF Statement evaluates              true and Inner IF Statement evalautes true then stop loop . If Main IF Statement evaluates false, directly go to Main ELSE IF Statement </p>

<p>If Main ELSE IF Statement evaluates true and Inner IF Statement evalautes false then go to Main ELSE IF ladder. If Main ElSE IF Statement evaluates true and Inner IF Statement evalautes true ,then stop loop .If Main ELSE IF Statement evaluates false, directly go to other Main ELSE IF Statements </p>
