Krustbox Posted December 25, 2011 Share Posted December 25, 2011 I had a quick question about how the if statement works. Say i want to do something like if $a=1 and ($b=2 OR $b=3). Would that statement as is work? Or would it need to be "if $a=1 and $b=2 OR $a=1 and $b=3"? In other words, when trying to use BOTH "and" as well as "or" in the same if statement, what is the proper way to break it down and lay it out? Is there a nice and short way of doing it? Link to comment Share on other sites More sharing options...
Developers Jos Posted December 25, 2011 Developers Share Posted December 25, 2011 Your first version looks fine, but you could very easily test this yourself right? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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