break Statement
Description
The break statement exits loops and terminates cases. In Endpoint Privilege Management for Unix and Linux 3.2 and earlier, the break statement is used only to end a case clause in a switch statement.
Beginning with Endpoint Privilege Management for Unix and Linux 3.5, the break statement is used within loops as well as to end a clause in a switch statement.
Syntax
break;
for (a = 1 ; a <= 10; a++) { if (a > 5) break; print (a); }
The statement prints the numbers between 1 through 5.
For more information, see the following: