Feature dcScript - Gadreel/divconq GitHub Wiki

Intro

We don't have an official demo yet, however the [0.9.4 slide presentation](Docs/Demo 0.9.4.pdf) provides an partial introduction as do the scripts in ./packages/dcTest/dcs/examples.

Logging

TODO

<Error>xyz</Error>

does not actually set an error code but will ..

Tradition

It is [tradition] (http://www.99-bottles-of-beer.net/) to write 99 Bottle of Beer in every programming language, so here it is:

<dcScript Title="99 Bottles of Beer Song">
<Main>
	<For Name="bottles" From="99" To="0" Step="-1">
		<Switch Target="$bottles">
		<Case GreaterThan="2">
			<Var Name="bottlesleft" Type="Integer" SetTo="$bottles">
				<Dec />
			</Var>

			<Info>
{$bottles} bottles of beer on the wall, {$bottles} bottles of beer.
Take one down and pass it around, {$bottlesleft} bottles of beer on the wall.</Info>
		</Case>
		<Case Equal="2">
			<Info>
{$bottles} bottles of beer on the wall, {$bottles} bottles of beer.
Take one down and pass it around, 1 bottle of beer on the wall.</Info>
		</Case>
		<Case Equal="1">
			<Info>
{$bottles} bottle of beer on the wall, {$bottles} bottle of beer.
Take one down and pass it around, no more bottles of beer on the wall.</Info>
		</Case>
		<Case Equal="0">
			<Info>
No more bottles of beer on the wall, no more bottles of beer.
Go to the store and buy some more, 99 bottles of beer on the wall.</Info>
		</Case>
		</Switch>
	</For>
</Main>
</dcScript>
⚠️ **GitHub.com Fallback** ⚠️