While statement

Example:

  1. echo "Please tell me your password:"
  2. var pw = readLine(stdin)
  3. while pw != "12345":
  4. echo "Wrong password! Next try:"
  5. pw = readLine(stdin)

The while statement is executed until the expr evaluates to false. Endless loops are no error. while statements open an implicit block, so that they can be left with a break statement.