H (Hybrid) Language - Version 0.02, by Dr. Herong Yang
"while" Loop Statement
This section describes what is a 'while' loop statement in H language.
A "while" loop statement is a statement that executes a sub-statement repeatedly while the given condition is satisfied.
A "while" loop statement has the following syntax:
$while condition, sub-statement;
Examples of "while" loop statements are:
# the follow loop has no end $while $true, sleep(60000); # the following loop ends when x reaches 100 sum = 0; x = 0; $while x < 100, ( x = x + 1; sum = sum + x; );
Last update: 2017.
Table of Contents