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

 

JScript do. . . while Statement

Executes a statement block once, and then repeats execution of the loop until a condition expression evaluates to false.

Syntax: JScript do. . . while Statement

do

statement

while (expression) ;

Arguments: JScript do. . . while Statement

statement

The statement to be executed if expression is True. Can be a compound statement.

expression

An expression that can be coerced to Boolean True or False. If expression is True, the loop is executed again. If expression is False, the loop is terminated.

Remarks: JScript do. . . while Statement

The value of expression is not checked until after the first iteration of the loop, guaranteeing that the loop is executed at least once. Thereafter, it is checked after each succeeding iteration of the loop.

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