Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

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

Alternative Versions

Comments

>>  noone said on 01/04/08 17:16:26

noone Man i hate working with WOPTL ....

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!

Name:

eMail:

URL:

Security Code:
  
Comment: