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 Stratus VOS command macro

Date:07/06/05
Author:Brad Nelson
URL:n/a
Comments:0
Info:http://stratadoc.stratus.com
Score: (2.90 in 10 votes)
&begin_parameters
  nbr_bottles  number_of_bottles:number,required,=99
&end_parameters
&label top
&display_line &nbr_bottles& bottles of beer on the wall,
&display_line &nbr_bottles& bottles of beer;
&display_line Take one down, pass it around,
&set nbr_bottles (calc &nbr_bottles& - 1)
&if &nbr_bottles& = 0
  &then &goto no_more_beer
&display_line &nbr_bottles& bottles of beer on the wall
&display_line
&goto top
&label no_more_beer
&display_line No more bottles of beer on the wall
&return
&
& Stratus VOS command macro language version of:
& 99 Bottles of Beer
& Written by: Brad Nelson
& Date: 07/05/2005
& Notes: Earlier versions of the command macro processor
&        did not allow comments at the beginning of the
&        macro, so I've placed them at the end.
&
& Usage: 99bottles.cm [initial number of bottles]
&

Download Source | Write Comment

Alternative Versions

Comments

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: