When

1 program Added 2026-05-21T12:55:32Z Evidence Report issue View issues
Aliases: —

Sources mentioning this language

2 sources · pl_id: pl/when
Community · 1Esolang

Related languages

Whenever (0.33)Eden (0.20)Gren (0.20)Why3 (0.20)Aiken (0.18)

Community-contributed programs

Submitted by visitors through the Propose-extension form; each one was reviewed in a draft PR before landing.

Bottles of beer

Provenance: submitted via #29 on the Propose-extension form
code.txt · added: 2026-05-21T12:55:32Z
out = str n+" bottle"+e+" of beer on the wall, "+str n+" bottle"+e+" of beer.\n" when n
n = n - 1 when n
e = "s" when n != 1
e = "" when n == 1
x = "no more" when n == 0
x = str n when n != 0
out = "Take one down, pass it around, "+x+" bottle"+e+" to go.\n" when n > (0-1)
quit = 0 when x == "no more"
e = "s"
n = 99

Real programs from Software Heritage

No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)

Contribute — propose a file extension

Tell us where to find evidence about When (mapped to pl/when). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/When/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Wheel When The →