I have the following expression:
(A=1 or A=2) or (B=1 or B=2)
and try to transfer it to:
(A=1 or A=2 or B=1 or B=2)
Are these two expressions equal?
Asked
Active
Viewed 67 times
-1
walterhuang
- 103
1 Answers
0
Logical or is an associative operation. That implies that it doesn't matter how you group things in parentheses—if you're oring them all together they will come out the same. That's why the notation without parentheses is allowed at all. I think you should probably also have an intuitive sense of the meaning of those statements that should guide you.
dfeuer
- 9,069