title: How can I stop executing the rest of a method at some point inside the method?
body: <p>I was wondering if there is a command which would have the same function as <code>exit</code>.</p>
  
  <p>So, for instance:</p>
  
  <pre><code>if (Average &lt; 35)
  {
      MessageBox.Show("you failed");
      **EXIT**
  }
  
  if (Average &gt;= 75)
  {
      lblOutput.Text += Name +" " + Surname + ", " + "your average was: " + Average + ", you shall recieve a bursary!";
  }
  else
      lblOutput.Text += Name +" " + Surname + ", " + "your average was: " + Average + ", you shall not revieve a bursary!";
  </code></pre>
  
  <p>Even if the average is lower than 35, the script will carry on going and the <code>lblOutput</code> will still say <code>You shall not receive a bursary.</code> while it should just show the <code>MessageBox</code> and not do anything with the label.</p>
  
  <p>Could someone explain how to do this?</p>