Control Flow

For a:Boolean and b:Boolean, conditionals can be written as follows:

if (a) {
  // ...
} else if (b) {
  // ...
} else {
  // ...
}

where zero or more else if blocks may appear, and zero or one else block.

Conditional loops are written as:

while (a) {
  // ...
}

or:

do {
  // ...
} while (a);

For a:Integer, b:Integer, and c:Integer, a for-loop is written as:

for (a in b..c) {
  // ...
}