[Contents] [Previous] [Next] [Index]

labeled

Provides an identifier that can be used with break or continue to indicate where the program should continue execution.

Implemented in

Navigator 4.0, Netscape Server 3.0

In a labeled statement, break or continue must be followed with a label, and the label must be the identifier of the labeled statement containing break or continue.

Syntax

label :
   statement

Arguments

statement
Block of statements. break can be used with any labeled statement, and continue can be used with looping labeled statements.

Example

For an example of a labeled statement using break, see break. For an example of a labeled statement using continue, see continue.

See also

break, continue


[Contents] [Previous] [Next] [Index]

Last Updated: 10/31/97 12:29:59


Copyright © 1997 Netscape Communications Corporation