Jump to content

Recommended Posts

Posted

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

Posted

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

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
  • Recently Browsing   0 members

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