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