Originally posted by Hanyeguxing at 2010-4-23 20:53:
通过下面两个例子就可以看出比较字符和比较运算的区别
if 33 equ 0x21 echo.相等
if not 33==0x21 echo.不同
或
if 0 equ 00 echo.相等
if not 0==00 echo.不同
幸好 hangyeguxing兄及时的帮我矫正错误,要不然还不知道搞出什么来呢。。看来我还要努力学习!
这一次是我对IF比较的错误理解!!!<img src="images/smilies/face-smile-big.png" align="absmiddle" border="0">
刚才我测试下,是通过的:
if 041 equ 0x21 echo.相等
if not 33==0x21 echo.不同
pause
if 001 equ 001 echo.相等
if not 05==005 echo.不同
pause
再次感谢~!
Originally posted by Hanyeguxing at 2010-4-23 20:53:
The difference between comparing characters and comparing operations can be seen from the following two examples
if 33 equ 0x21 echo. equal
if not 33==0x21 echo. different
or
if 0 equ 00 echo. equal
if not 0==00 echo. different
Fortunately, Brother hangyeguxing corrected my mistake in time, otherwise I wouldn't know what kind of mess I would make. It seems I still need to study hard!
This time it's my wrong understanding of IF comparison! ! ! :D
Just now I tested it and it worked:
if 041 equ 0x21 echo. equal
if not 33==0x21 echo. different
pause
if 001 equ 001 echo. equal
if not 05==005 echo. different
pause
Thank you again~!