ABAP Keyword Documentation → ABAP − Reference → Program Flow Logic → Expressions and Functions for Conditions → log_exp - Logical Expressions → log_exp - Boolean Operators and Parentheses
log_exp - EQUIV
Other versions: 7.31 | 7.40 | 7.54
Syntax
... log_exp1 EQUIV log_exp2 ...
Effect
Joining two logical expressions log_exp
with EQUIV produces a new logical expression which is true if both expressions
are true or both expressions are false. If one of the expressions is true and the other one is false, the join is false.
Within a parenthesis level, only two logical expressions can be joined using EQUIV.
Notes
- The operator 
EQUIVis a weaker join thanNOT,AND, andOR. 
- The operator 
EQUIVimplements an equivalence join. Negating a join like this usingNOTis the same as using an XOR join (eXclusive OR). It is true if one of the expressions is true and the other one is false. 
Example
The condition in the IF statement is true if o1,
o2, and o3, o4 are either both equal or both unequal pair-wise.
DATA: o1 TYPE i, 
      o2 TYPE i, 
      o3 TYPE i, 
      o4 TYPE i. 
... 
IF o1 = o2 EQUIV o3 = o4. 
  ... 
ENDIF.