break;

Break statement. Transfer control out of the inner enclosing for or while or do-while or switch statement.


Example


i = 1;

while( true ) {

   if( a[i]<0 or i>size(a) )

      break;

   println( "a[", i, "]=", a[i] );

   i++;

}