Jump to content

Another Simple Questions


Recommended Posts

$x=1
while $x=0 OR $x=1
tooltip("while works",0,0)
$x=msgbox(1,"OK is 1","Cancel is 2"&@lf&"$x is now "&$x)
wend

msgbox(1,"$x is now 2","exiting")

make sure to have a complete yes or no equasion on each side of an AND or an OR statement

good:

If 1=1 or 2=2 then

If $x=1 or $x=2 then

bad:

If $x=1 or 2 then; bad

If 1=2 or 2 then ; would calculate like If 2 then

ps, I like to keep AND and OR in caps

Edited by scriptkitty

AutoIt3, the MACGYVER Pocket Knife for computers.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...