Docs

Variables, input, and output

Learn how PseudoEditor handles declarations, assignment, INPUT prompts, and OUTPUT statements.

Updated 2026-05-04

Declare before use

Declare each variable with a type before assigning to it. This helps the compiler catch misspellings and mismatched values early.

Common scalar types include INTEGER, REAL, STRING, CHAR, and BOOLEAN.

DECLARE Score : INTEGER
DECLARE Passed : BOOLEAN
Score <- 74
Passed <- TRUE

Interactive input

When a program reaches INPUT, the terminal asks for the next line of input. This lets you test validation loops and menu programs in the browser.