Glados - ufLang
  • Home
  • Introduction
    • Installation
    • Code examples
    • Syntax
    • Accessibility
      • REPL
      • VS Code extension
    • Security Points
    • Inspirations and security in ufLang
  • ➕Operators
    • Arithmetic
    • Assignment
    • Comparison
  • 🏈Features
    • Prints
    • Classes
    • Types
      • Integer
      • String
      • Double
      • Boolean
      • Var
    • Loops
      • For
      • While
    • If / Else
    • Syntactic Sugar
    • Recursivity
    • Comment
Powered by GitBook
On this page
  • Creating a while loop
  • Syntax
  • Example
  1. 🏈Features
  2. Loops

While

Creating a while loop

Syntax

while (<condition>) {
    <block>
}

Example

int i = 1;

while (i < = 10) {
    println(i);
    i++;
}

PreviousForNextIf / Else

Last updated 5 months ago