See Also
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.
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/language/jscript/js772.htm,
2KB, , updated: 1997年9月30日 03:45, local time: 2025年9月13日 16:47,
©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://techref.massmind.org/Techref/language/jscript/js772.htm"> while Statement</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.