![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 11:47 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Invalid numeric comparison operations under if |
| Printable Version 2,982 / 17 |
| Floor16 gool123456 | Posted 2010-04-22 21:24 |
| 初级用户 Posts 76 Credits 89 | |
|
Actually, I don't really know how IF works. I'm just doing a test here and giving my personal opinion. Specifically, it still depends on everyone's joint efforts!
|
|
| Floor17 Hanyeguxing | Posted 2010-04-23 20:53 |
| 银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂 | |
Originally posted by gool123456 at 2010-4-22 21:24: The difference between comparing characters and comparing operations can be seen from the following two examples or |
|
| Floor18 gool123456 | Posted 2010-04-24 04:19 |
| 初级用户 Posts 76 Credits 89 | |
Originally posted by Hanyeguxing at 2010-4-23 20:53: 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! ! ! ![]() 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~! |
|
| Prev 1 2 |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |