Export (0) Print
Expand All

Operator Precedence

Bing

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 ||.

Examples

foo bar OR bing yahoo 

 is the same as

(foo AND bar) | (bing AND yahoo)

instead of

foo (bar | bing) yahoo

Similarly,

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
Show:
© 2014 Microsoft