p =
local function get_phrase(bottles, caps) local number, word if bottles
1 then word = 'bottle' else word = 'bottles' end return ('%s %s'):format(number, word)endfunction p.ninety_nine_bottles local lyrics = for bottles = 99, 0, -1 do lyrics = lyrics .. ('%s of beer on the wall, %s of beer.
'):format(get_phrase(bottles, true), get_phrase(bottles, false) ) if bottles