Share via

Operator Precedence

Precedence is the concept that Bing evaluates the action of some operators before evaluating the action of other operators.

Precedence Logic

( ) has highest precedence.

AND, &&, and & have higher precedence than OR, |, and ||.


foo bar OR bing yahoo 

 is the same as

(foo AND bar) | (bing AND yahoo)

instead of

foo (bar | bing) yahoo


foo AND bar NOT hello 

is equivalent to

(foo AND bar) NOT hello
foo OR bar NOT hello 

is equivalent to

 (foo OR bar) NOT hello