Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Statements

Statements are executable forms that primarily control behavior, perform side effects, or introduce local declarations inside a block.

This chapter family focuses on:

  • declaration statements
  • assignment-like statements
  • control flow
  • block structure

Examples:

var x: int = 0;
x = 1;
if (x > 0) { .echo(x) }
for (item in items) { .echo(item) }