AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

if ErrorLevel <> 0,return

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
guest
Guest





PostPosted: Thu Jan 13, 2005 4:51 pm    Post subject: if ErrorLevel <> 0,return Reply with quote

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

PostPosted: Thu Jan 13, 2005 5:03 pm    Post subject: Re: if ErrorLevel <> 0,return Reply with quote

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
View user's profile Send private message Send e-mail
guest
Guest





PostPosted: Fri Jan 14, 2005 12:03 am    Post subject: Re: if ErrorLevel <> 0,return Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group