Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript break Statement

Terminates the current loop, or if in conjunction with a label, terminates the associated statement.

Syntax: JScript break Statement

break [label];

Arguments: JScript break Statement

label

Optional argument that specifies the label of the statement you are breaking from.

Remarks: JScript break Statement

You typically use the break statement in switch statements and while, for, for...in, or do...while loops. You most commonly use the label argument in switch statements, but it can be used in any statement, whether simple or compound.

Executing the break statement exits from the current loop or statement, and begins script execution with the statement immediately following.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.