Docs

IF, THEN, ELSE selection

Use IF statements to branch pseudocode programs based on comparisons and Boolean expressions.

Updated 2026-05-04

Choose between paths

Selection runs one block when a condition is true and optionally runs an ELSE block when it is false.

Use indentation consistently. The compiler reads the keywords, but clean indentation makes tracing much easier.

IF Mark >= 50
  THEN
    OUTPUT "Pass"
  ELSE
    OUTPUT "Try again"
ENDIF