Jump to content
Sign in to follow this  
jessegk

Quick question

Recommended Posts

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

$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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...