Re: Game in dos


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]

Posted by SpywareDr on February 12, 2011 at 15:14:02:

In Reply to: Re: Game in dos posted by fuzzbrain11 on February 12, 2011 at 13:59:36:

@echo off
set ItemValue=50
if (%COINS%)==() set COINS=0
set /a COINS=%COINS%+10
if not %COINS% GEQ %ItemValue% goto NotEnough
echo You have have enough money.
goto DisplayValues
:NotEnough
echo You do not have enough money.
:DisplayValues
echo COINS=%COINS%
echo ItemValue=%ItemValue%
echo.
:End


Follow Ups:



Post a Followup (use TAB key to move between boxes - NOT ENTER or RETURN)

Name:
E-Mail:

Subject:

Type your comments in the box below and SUBMIT:


[ Follow Ups ] [ Post Followup ] [ The EasyDOS Forum ] [ FAQ ]