Jump to content
Sign in to follow this  

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

Recommended Posts



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


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?


Share this post

Link to post
Share on other sites

Ah yes you are right, thanks a lot

- Sreedhar

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.