I was wondering if there is a command which would have the same function as exit.
So, for instance:
if (Average < 35) { MessageBox.Show("you failed"); **EXIT** } if (Average >= 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!"; Even if the average is lower than 35, the script will carry on going and the lblOutput will still say You shall not receive a bursary. while it should just show the MessageBox and not do anything with the label.
Could someone explain how to do this?