break Statement

The break statement exits loops and terminates cases. In 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 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.

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, please see the following: