+ 2

Which is the highest priority between AND & OR logic ?

29th Dec 2015, 12:59 AM
reza a
reza a - avatar
7 ответов
+ 8
NOT is the highest. AND is the second. OR is the lowest. TRUE or FALSE and not TRUE <=> TRUE or (FALSE and (not TRUE))
11th Jul 2016, 12:45 PM
df32
df32 - avatar
+ 1
Could anyone give an example for it? I tried hard to do this but didn't succeed:(
5th Jul 2016, 6:11 PM
Василий Андреев
Василий Андреев - avatar
0
first and then or
30th Dec 2015, 11:07 AM
Pratik Pede
Pratik Pede - avatar
0
it's impossible to see difference between priorities in your example. Result of this example will be "TRUE" independently from priorities "OR" and "AND", isn't it?
28th Oct 2016, 9:58 AM
Василий Андреев
Василий Андреев - avatar
- 1
and
14th Jan 2016, 10:24 PM
Vatsal Bhatia
Vatsal Bhatia - avatar
- 1
My apologies, it's really not obvious example, top answer is the best. You right.
28th Oct 2016, 10:36 AM
Alif Learner
Alif Learner - avatar
- 1
Additionally to the top one: NOT tells you to reverse the logic so you must do it always first to calculate with the right value AND can be substituted for multiplication so it is high priority OR is for addition so the lowest priority
5th Feb 2017, 1:33 AM
s3i