whileclause
The term while clause can refer to two related concepts in language and computer science. In linguistics, it denotes a subordinate clause introduced by the conjunction while. In computer science, it names the loop construct that repeats a block of code while a condition holds. The two uses are distinct but share the idea of a condition governing subsequent content.
In grammar, a while clause often expresses time or a contrast between two situations. As a temporal
In programming, a while loop executes a block of statements repeatedly as long as a given condition
See also: subordinate clause, do-while loop, for loop, conditional sentence.