jessegk Posted February 27, 2007 Share Posted February 27, 2007 Is this possible? How can I make the If statement ask if the variable's value is different from what I specify and act if it is. Example script : $i = 0 while 1 sleep(500) if $i not 1 Then MsgBox (1, "Value is not 1!", "Blah") endif wend Something like this. I have tried many many variations of this. Link to comment Share on other sites More sharing options...
alexx Posted February 27, 2007 Share Posted February 27, 2007 (edited) $i = 0 while 1 sleep(500) if $i <> 1 Then MsgBox (1, "Value is not 1!", "Blah") endif wend Edited February 27, 2007 by alexx Link to comment Share on other sites More sharing options...
jessegk Posted February 27, 2007 Author Share Posted February 27, 2007 $i = 0while 1sleep(500)if $i <> 1 Then MsgBox (1, "Value is not 1!", "Blah")endifwendThank you <3 Link to comment Share on other sites More sharing options...
alexx Posted February 27, 2007 Share Posted February 27, 2007 no problem! i wish i could get my question answered are you new to autoit like me? 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