Falling Posted May 17, 2004 Posted May 17, 2004 What is the syntax for OR. Like while ( X OR Y) Thanks in advance.
scriptkitty Posted May 17, 2004 Posted May 17, 2004 (edited) $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 May 17, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers.
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