Search code examples
webspherelogic

Logical operator manipulation


I am working on IBM eXtreme scale that doesn't readily support the OR logical operator but supports AND. So my question is, Is their a way to achieve a OR using AND.


Solution

  • De Morgan's Laws apply here. So, instead of

    A OR B
    

    ...test if

    NOT(NOT(A) AND NOT(B))