YENGbreak

From OpenSimulator
Revision as of 12:40, 22 September 2020 by imported>Djphil (Indentation)
Jump to navigationJump to search

break can be used to jump out of do...while, while and for() loops ( or case clauses )

string error = "";

while(true) {

   if(blabla)
   {
       error = "blabla";
       break;
   }
   if(bla)
   {
       error = "bla";
       break;
   }
   break;

}