Sign in to follow this  
Followers 0
jessegk

Quick question

4 posts in this topic

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. :whistle:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

$i = 0

while 1

sleep(500)

if $i <> 1 Then

MsgBox (1, "Value is not 1!", "Blah")

endif

wend

Edited by alexx

Share this post


Link to post
Share on other sites

$i = 0

while 1

sleep(500)

if $i <> 1 Then

MsgBox (1, "Value is not 1!", "Blah")

endif

wend

Thank you <3

Share this post


Link to post
Share on other sites

no problem! i wish i could get my question answered :whistle:

are you new to autoit like me?

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  
Followers 0