当我一起添加变量时,我该怎么做才能修复这个批处理错误?

What can I do to fix this batch error when I'm adding to variables together?

每次我 运行 下面的代码我都会得到这个错误: '10+1' is not recognized as an internal or operable program or batch file. 我检查了堆栈溢出但找不到任何东西。如果这是一个糟糕的问题,我深表歉意。 这是代码:

`@echo off 
set chips=10
set return=1
echo %chips% chips remaining
echo choose a number between one and ten:
set /p num=number:
set /p yn=play? 
if %yn%==y (echo starting..) else (exit) 
timeout /t 3
SET /A test=%RANDOM% * 10 / 32768 + 1
echo %test%
if %test%==%num% (%chips%+%return%)
echo %chips% chips remaining`

如果比较后应跟有可识别的命令,例如set /a var=%chips%+%return%,但不在您的示例中

if %test%==%num% (%chips%+%return%)