When
Aliases: —
Sources mentioning this language
2 sources · pl_id:
pl/whenRelated languages
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
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.)