Navigation Banner
 

break Batch language command
  A loop termination command. When encountered within any for, while or do..while loop, causes the execution of the loop to stop, and transfers control to the first statement following the loop.
Syntax  break;
Notes A loop termination command. When encountered within any for, while or do..while loop, causes the execution of the loop to stop, and transfers control to the first statement following the loop.
Examples
for (i=5;i<100;i=i+1)
{
   ;if (Random(0,i)>i-1)
     {    
     break;
   }
}
 Last modified: 8/19/2002

 
Sergei L. Kosakovsky Pond and Spencer V. Muse, 1997-2002