<while Expression> heitml </while> |
The while tag is used to program a loop.
First, the Expression is evaluated. The result must be of type Boolean.
While the expression evaluates to true, the actions defined in the body of the loop are executed.
An alternative to the while loop is the for loop.
Before running a program that uses while loops, first check that you
did not program an endless loop.
See Also: for, forin.
| input:||resulting output:|
<let i = 0;
while i ≤ 10;
? i * 2;
if i < 10>,</if;
i = i + 1;
The while Tag is Case Sensitive, which means that heitml will not recognize it if you use capital letters (e.g. <WHILE Expression>).
This page was dynamically generated by the
web application development tool RADpage
See "Was ist AJAX? "
(in German). In Germany H.E.I. provides Webdesign in Mannheim and
Web Programming (Programmierung).
© 1996-2019 H.E.I. All Rights Reserved.