我有两个数字值%Points%
和%PCP1%
。
我希望有类似的东西:
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
)
它不起作用。请帮忙。谢谢!
答案 0 :(得分:1)
小于运算符是LSS
,即:
IF (%Points% LSS %PCP1%) (
其他运营商是: