Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

if ErrorLevel <> 0,return


  • Please log in to reply
2 replies to this topic
guest
  • Guests
  • Last active:
  • Joined: --
When the condition judgment sentence of if is written by one line, it
becomes an error.
if ErrorLevel <> 0,return

However, it doesn't become an error in the following description.
if ErrorLevel <> 1,return
Both were able to be executed before Ver1.0.24.

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004

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:
IfNotEqual, ErrorLevel, 0, Return
; ... or ...
if ErrorLevel <> 0
     Return
Sorry for the inconvenience.

guest
  • Guests
  • Last active:
  • Joined: --
Thank you for the answer.
It reported because it did not become an error by the value of value.
Such writing was
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.