C:\Users\username>set aa=15
C:\Users\username>set /a hh=aa-16
-1
C:\Users\username>if hh==-1 echo yes
C:\Users\username>if %hh%==-1 echo yes
yes
C:\Users\username>if %hh%==-1 (echo yes)
yes
C:\Users\username>if %hh%==-1 (
More? echo yes
More? echo y
More? )
yes
y
C:\Users\username>if %hh%==-8 (echo yes)
C:\Users\username>if %hh%==-8 (echo yes)else( echo no)
else( の使い方が誤っています。
C:\Users\username>if %hh%==-8 (echo yes) else ( echo no)
no
(Visited 4 times, 1 visits today)