Sign in to follow this  
Followers 0
idoru

Really quick question

3 posts in this topic

Hi Guys,

Just a quickie,

will this expression

While $idfilename = "" And $count < 3 Or $check = 0 And $count < 3

work like this

While ($idfilename = "" And $count < 3) Or ($check = 0 And $count < 3)

are parenthesis needed? Can't find this in the help file as of course it doesnt let you search for AND and OR :D

Cheers

Share this post


Link to post
Share on other sites



The page "Language Reference - Operators" from the help file deals with these questions.

When more than one operator is used in an expression the order in which things happen is controlled by operator precedence. The precedence used in AutoIt is given below. Where two operators have the same precedence the expression is evaluated left to right.

From highest precedence to lowest:

NOT

^

* /

+ -

&

< > <= >= = <> ==

AND OR

Share this post


Link to post
Share on other sites

Thanks dude. :D

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