H (Hybrid) Language - v0.03, 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; );
Table of Contents
Conditional "elseif" Statement
"switch" Statement - Not Supported
"do...while" Statement - Not Supported
Inheritance - Object Attachments