See http://www.blueworld.com/ for more informations
[lasso_comment]
Implementation of 99 Bottles of Beer in Lasso 3.6.6.
Chris Latko
http://www.latko.org/
October 19, 2002
[/lasso_comment]
99 Bottles of Beer
[var_set:'bottleNo'='Bottles']
[loop:loopfrom=99,loopto=2,loopincrement=-1]
[if:(loopcount)==1]
[var_set:'bottleNo'='Bottle']
[/if]
[loopcount] [var:'bottleNo'] of Beer on the wall, [loopcount]
[var:'bottleNo'] of Beer,
[if:(math_sub:(loopcount),'1')==1]
[var_set:'bottleNo'='Bottle']
[/if]
Take one down, pass it around, [math_sub:(loopcount),'1']
[var:'bottleNo'] of Beer on the wall
[/loop]
1 Bottle of Beer on the wall, 1 Bottle of Beer,
Take one down, pass it around, no Bottles of Beer on the wall