# search – Boolean Logic (Order of operations) A and B or C

## search – Boolean Logic (Order of operations) A and B or C

Wikipedia to the rescue, this should help:

http://en.wikipedia.org/wiki/Order_of_operations#Programming_languages

From the looks of things, it would appear that `AND`

takes precedence over `OR`

in most languages.

Based on Quetzalcoatls response, the correct answer for the OP question is:

(A and B) or C

Thats the equivalent for A and B or C

Although Quetzalcoatls link (http://en.wikipedia.org/wiki/Order_of_operations#Programming_languages) speaks about programming languages (as this site does), a more common precedence is specified for general logic in wikipedia:

https://en.wikipedia.org/wiki/Logical_connective#Order_of_precedence

#### search – Boolean Logic (Order of operations) A and B or C

(A) and (B or C)

and means intersection or like union

Like in math

AND is like a multiplier and OR like a sum

in a truth table

OR

A | B | result

true | true | true

true | false | true

true | false | true

false | false | false

AND

A | B | result

true | true | true

true | false | false

true | false | false

false | false | false