break can be used to jump out of do...while, while and for() loops ( or case clauses )
Make sure to include yoptions; on second line of script.
string error = "";
while(true)
{
if(blabla)
{
error = "blabla";
break;
}
if(bla)
{
error = "bla";
break;
}
break;
}