real language

Bookmarking Digg Diigo DZone Earthlink Google
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language DHTML (Duo html)

(Webscripting language of Duo NV)

Author:Kevin Velghe
Score: (3.00 in 9 votes)
<$- Duo HTML -$>
	<title>99 Bottles of Beer</title>
	<$SET looper 100>
	<$LOOP looper>
		<$ESET nr 100>
		<$CALC nr - $looper.#>
		<$ESET nr $nr.atoi()>
		<$ESET nrnext $nr>
		<$CALC nrnext - 1>
		<$ESET nrnext $nrnext.atoi()>
		<$IF nr = 0>
			No more bottles of beer on the wall, no more bottles of beer.<br>
			Go to the store and buy some more, 99 bottles of beer on the wall.<br>
			<$IF nr > 1><$SET bottles "bottles"><$/IF>
			<$IF nr = 1><$SET bottles "bottle"><$/IF>
			<$DVAL0 nr> <$VAL bottles> of beer on the wall, <$DVAL0 nr> <$VAL bottles> of beer.<br>
			Take one down and pass it around, 
			<$IF nrnext > 0>
				<$IF nrnext > 1><$SET bottles "bottles"><$/IF>
				<$IF nrnext = 1><$SET bottles "bottle"><$/IF>
				<$DVAL0 nrnext> <$VAL bottles>
				no more bottles
			of beer on the wall.<br>

Download Source | Write Comment

Alternative Versions


>>  RW27Konnie said on 01/28/10 12:23:31

RW27Konnie It involves a long period of time to add your superior topic like this good post manually. Therefore, <a href="">submit article</a> service and free article submission exist with that aim and you should utilize it.

>>  kasper666 said on 02/25/10 11:30:28

kasper666 It seems tobe not really esay to write such smashing outcome close to this topic. But smart students always come to <a href="">writing service</a> to buy the academic essay writing.

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!




Security Code: