'How to get around "xyz was unexpected at this time."? [duplicate]
I'm trying to make a system which checks for money before letting you buy something. I'm stuck on the error: "5 was unexpected at this time." I don't know what I'm doing wrong and would love some help.
Code:
:711Beans
title BEANS AAAAAAA
if %money% LSS 5 (
title No Money?
cls
echo Silly, you don't have enough money to buy beans.
echo Cash Money: $%money%
pause
goto 711
)
if %money% GEQ 5 (
cls
set /a money=%money%-5
echo You buy somes fromt he 7/11 for 5$
echo Cash Money: $%money%
pause
goto 711
)
My expected result is the system checks for money, if it's less than a certain number, it doesn't let me buy beans, or if I have sufficient money, it lets me buy beans. However, my actual result is "5 was unexpected at this time."
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
