Language MivaScript
| Date: | 04/20/05 |
| Author: | Darren Ehlers |
| URL: | n/a |
| Comments: | 2 |
| Info: | n/a |
| Score: |
<MvCOMMENT> MivaScript version of 99 Bottles of beer</MvCOMMENT>
<MvCOMMENT> See http://www.miva.com/ </MvCOMMENT>
<MvCOMMENT> Darren Ehlers, http://www.ehlersconsulting.net </MvCOMMENT>
<MvASSIGN NAME = "l.b" VALUE = "{ 99 }">
<MvWHILE EXPR = "{ l.b LT 0 }">
<MvEVAL EXPR = "{ l.b $ ' bottle(s) of beer on the wall,<BR>' }">
<MvEVAL EXPR = "{ l.b $ ' bottle(s) of beer.<BR>' }">
<MvEVAL EXPR = "{ 'Take one down, pass it around,<BR>' }">
<MvASSIGN NAME = "l.b" VALUE = "{ l.b - 1 }">
<MvEVAL EXPR = "{ l.b $ ' bottle(s) of beer on the wall.<BR><BR>' }">
</MvWHILE>
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments
<MvIF EXPR="{l.b GT 0}>
<MvEVAL EXPR = "{ l.b $ ' bottle(s) of beer on the wall.<BR><BR>' }">
<MvELSE>
<MvEVAL EXPR= "No more bottles of beer.">
<MvWHILESTOP>
</MvIF>