inscript

Language reference

Events turn documents into listeners.

when sets up something to happen later. unless blocks it under a condition. finish ends the watching.

when registers a handler. unless adds a guard. finish exits listener mode.

when timer is finished unless paused is active:
    show "done"
    finish

An Inscript file runs in two passes: first it sets things up in order, then it watches for changes and reacts. So one readable file can describe both the starting state and the live behavior.

Execution has two phases: sequential setup, then reactive listening. This lets a readable file define initial state and live response behavior.