Sreed Posted July 13, 2011 Share Posted July 13, 2011 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 More sharing options...
Exit Posted July 13, 2011 Share Posted July 13, 2011 The consoslewrite resets the @error to 0. Consolewrite had no error. App: Au3toCmd UDF: _SingleScript() Link to comment Share on other sites More sharing options...
Sreed Posted July 13, 2011 Author Share Posted July 13, 2011 Ah yes you are right, thanks a lot - Sreedhar Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now