99 bottles of beer: Difference between revisions
Content added Content deleted
(fix syntax highlighting) |
(DM) |
||
Line 3,678: | Line 3,678: | ||
=={{header|Delphi}}== |
=={{header|Delphi}}== |
||
See [[99 Bottles of Beer/Pascal]] |
See [[99 Bottles of Beer/Pascal]] |
||
=={{header|DM}}== |
|||
Uses the [] variable insertion into strings, see [http://www.byond.com/docs/ref/#/DM/text] |
|||
/client/New() |
|||
..() |
|||
var/bottlestring |
|||
for(var/i in 99 to 0) |
|||
bottlestring = "[i || "No more"] Bottle[i != 1 ? "s" : ""] of Beer" |
|||
src << "[bottlestring] on the wall," |
|||
src << "[bottlestring]," |
|||
src << "Take [i == 1 ? "it" : "one"] down, pass it around," |
|||
src << "[bottlestring] on the wall," |
|||
=={{header|Draco}}== |
=={{header|Draco}}== |