[batch] 比較運算子

回覆文章
Lexaul
文章: 231
註冊時間: 2019-10-18, 14:28

[batch] 比較運算子

文章 Lexaul » 2022-02-07, 14:09

參考資料:https://matthung0807.blogspot.com/2019/ ... rical.html

equ 或==:等於
neq:不等於
lss:小於
leq:小於等於
gtr:大於
geq:大於等於

用法
set a=10
if %a% gtr 5 (
echo a is greater than 5
) else (
echo a is less then 5
)
[email protected]
github.com/Lexaul

回覆文章