Thursday, 5 September 2013

How do I check if %Points% < %PCP1% in batch?

How do I check if %Points% < %PCP1% in batch?

I have two numeral values, %Points%, and %PCP1%. I wish to have something
like:
IF (%Points% < %PCP1%) (
cls
echo Not enough money!
echo Hit enter to return home
pause
goto 2
)
ELSE (
echo Confirm Purchase? Your Points after this purchase will be
(%Points% - %PCP1%)
pause
)
It doesn't work. Please help. Thanks!

No comments:

Post a Comment