LoginSignup
0
0

【bat】01 と 1 はイコールか否か

Posted at
@echo off

echo 01 == 1
if 01 == 1 (
	echo true
) else (
	echo false
)

echo 01 equ 1
if 01 equ 1 (
	echo true
) else (
	echo false
)
pause>nul
result
01 == 1
false
01 equ 1
true

equの時は数値として処理する?

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0