99 bottles of beer: Difference between revisions
→{{header|EMal}}
Line 4,088:
type NinetynineBottles
int DEFAULT_BOTTLES_COUNT = 99
model
int initialBottlesCount, bottlesCount
Line 4,095 ⟶ 4,094:
me.bottlesCount = bottlesCount
end
fun subject = text by block do return when(me.bottlesCount == 1,
fun bottles = text by block do return when(me.bottlesCount == 0, "No more", text!me.bottlesCount) end
fun goToWall = void by block
|