Language WOPTL
(WebOn Programming Template Language)
Date: | 07/07/06 |
Author: | Terje Kristensen |
URL: | n/a |
Comments: | 1 |
Info: | n/a |
Score: | (2.89 in 9 votes) |
{:-SET str:}bottles{:END:} {:-SET bottle:}99{:END:} {:FOR NAME="beer" ARGS="0..$bottle":} [:bottle:] [:str:] of beer on the wall, [:bottle:] [:str:] of beer.<br> {:-SET bottle:} {:-IF "$bottle" eq "1":}no more {:-ELSE:}{:-WOPTL calc:}[:bottle:]-1{:END:} {:-END:} {:-END:} {:-SET str:}bottle{:IF "$bottle" ne "1":}s{:END:}{:END:} {:-IF $bottle < 0:} Go to the store and buy some more, 99 [:str:] of beer on the wall.<br> {:-ELSE:} Take one down and pass it around, [:bottle:] [:str:] of beer on the wall.<br> {:-END:} <br> {:END:}
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
noone said on 01/04/08 17:16:26
Man i hate working with WOPTL ....