Skip to content
On this page

Statements: While

The while statement is used to execute a block of code while a condition is true.

syntax
WhileStatement :
  while Expression BlockStatement


while $condition {
    // ...
}

Licensed under either of the MIT License or the Apache License (Version 2.0), at your option.