Better way to write if-else block
<p>I have following code (Sample code) which works very well.
I just think if there is any other better way we can write following code snippet more accurately with less code. </p>

<pre><code>if(language == "English")
{
    if(Student_id == 0)
    {
        someFunction();
    }
    else
    {
        if(getMarks(Student_id) &gt; 50 || subjectCount &gt; 1 || projectCount &gt; 0)
        {
            someFunction();
        }
    }
}
</code></pre>

<p>Also, please note if <code>Student_id</code> is <code>0</code>, <code>getMarks(Student_id)</code> throws error</p>