Description
Executes a statement until a specified condition is false.
Syntax
while ( expression )
statement
The while statement syntax has these parts:
Part
Description
expression
A
Boolean expression checked before each iteration of the loop. If
expression is
true, the loop is executed. If
expression is
false, the loop is terminated.
statement
The statement to be executed if expression is true. Can be a compound statement.
Remarks
The while statement checks expression before a loop is first executed. If expression is false at this time, the loop is never executed.
© 1996 by Microsoft Corporation.
file: /Techref/language/asp/js/218.htm,
2KB, , updated: 1996年11月22日 11:11, local time: 2025年10月6日 13:48,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://massmind.org/Techref/language/asp/js/218.htm"> Microsoft® JScript Language Reference </A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to massmind.org!
.