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 WordPerfect Macro

(WordPerfect 5.1 for DOS)

Date:09/29/05
Author:Feherke
URL:http://rootshell.be/~feherke/
Comments:1
Info:n/a
Score: (3.00 in 15 votes)
{;}99 bottles of beer~

{ASSIGN}nr~99~
{WHILE}1~
        {CALL}beer~ on the wall,{Enter}
        {CALL}beer~.{Enter}
        {ASSIGN}nr~{VARIABLE}nr~-1~
        {IF}{VARIABLE}nr~>-1~
                Take one down and pass it around,{Enter}
                {CALL}beer~ on the wall.{Enter}
        {ELSE}
                {ASSIGN}nr~99~
                Go to the store and buy some more,{Enter}
                {CALL}beer~ on the wall.{Enter}
        {END IF}
        {Enter}
        {IF}{VARIABLE}nr~=99~
                {BREAK}
        {END IF}
{END WHILE}

{RETURN}

{LABEL}beer~
        {IF}{VARIABLE}nr~!=0~
                {VARIABLE}nr~
        {ELSE}
                No more
        {END IF}
         bottle
        {IF}{VARIABLE}nr~!=1~
                s
        {END IF}
         of beer
{RETURN}

Download Source | Write Comment

Alternative Versions

Comments

>>  Jono said on 04/17/09 04:44:28

Jono sublime!

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: