 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
guest Guest
|
Posted: Thu Jan 13, 2005 4:51 pm Post subject: if ErrorLevel <> 0,return |
|
|
When the condition judgment sentence of if is written by one line, it
becomes an error.
| Code: | | if ErrorLevel <> 0,return |
However, it doesn't become an error in the following description.
| Code: | | if ErrorLevel <> 1,return |
Both were able to be executed before Ver1.0.24. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10463
|
Posted: Thu Jan 13, 2005 5:03 pm Post subject: Re: if ErrorLevel <> 0,return |
|
|
| guest wrote: | | Both were able to be executed before Ver1.0.24. | The fact that they worked before was unintentional. A command written as "if ErrorLevel <> 0,return" should compare the contents of ErrorLevel to the literal string "0,return" to be correct, which was why it was changed.
There are two ways to make it work in this version: | Code: | IfNotEqual, ErrorLevel, 0, Return
; ... or ...
if ErrorLevel <> 0
Return |
Sorry for the inconvenience. |
|
| Back to top |
|
 |
guest Guest
|
Posted: Fri Jan 14, 2005 12:03 am Post subject: Re: if ErrorLevel <> 0,return |
|
|
Thank you for the answer.
It reported because it did not become an error by the value of value.
Such writing was
| Code: | | if var<>=>=<=value and Next Processing | originally illegal.
(It was thought that I was a correct answer of "0`,xxxx" if "0,xxxx" was
recognized as String by me. )
Then, in the future, I will have these used.
IfEqual/IfNotEqual/IfLess/IfLessOrEqual/IfGreater/IfGreaterOrEqual
Thank you. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|