IF- ELSE condition - run the code in the ELSE section
<p>I have got the following IF condition code:</p>

<pre><code>if ((depth &lt;= min_depth ) &amp;&amp; (leaf_colour == "red")){

    for (i = 0; i &lt; array_2D.length; i++) {
        var leaf_size = array_2D[i][1];

        if (leaf_size  == 10 || leaf_size  == 11){
            alert("Error message.");
            break;  // we found an error, displayed error message and now leave the loop
        }
            else{ go to the next else section }
    }
}//end of if condition 

else{

    ...
    ...
    ...
    ...
    ...

}
</code></pre>

<p>Inside the 'FOR' loop, if (leaf_size  == 10 || leaf_size  == 11), we break the loop and do nothing but if this is not the case, i would like to run the code in the next ELSE section.</p>

<p>I do not want to copy the whole block of code and paste it inside the 'else' section of the for loop as it's quite long.</p>

<p>Is there a way of running the code in the second else section?</p>
