While statement
The while statement creates a loop that executes a specified statement as long as the test condition evaluates to true.
እስከ (condition) {
// statement
}An expression evaluated before each pass through the loop. If this condition evaluates to true, statement is executed. When condition evaluates to false, execution continues with the statement after the while loop.
An optional statement that is executed as long as the condition evaluates to true.
The following while loop iterates as long as ሀ is less than 10 printing the current state of ሀ
መለያ ሀ = 0;
እስከ (ሀ < 10) {
አውጣ ሀ;
ሀ = ሀ + 1;
}