Jump to content

if (@error = 1) doesn't return true though @error's value is 1


Recommended Posts

Hi,

In my AutoIt script, I'm trying to check the value of @error and based on its value I'm executing a conditional statement.

When I print the value of @error to console it says the value is 1 <=> writeconsole(@error)

Then I'm executing conditional statement based on the value of @error as below

if (@error = 1) Then

consoleWrite("Extended error :" & @extended) ; But this statment is never executed

EndIf

But the above statement never return true there by not printing the extended value. I, for sure, know that the value of @error is 1 because I'm printing the value of @error to the console before the above if condition.

Could you please help?

-Sreedhar.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...