Skip to content

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 - OR

Other versions: 7.31 | 7.40 | 7.54

Syntax


... log_exp1 OR log_exp2 OR log_exp3 ...

Effect

If multiple logical expressions log_exp are joined using OR, a new logical expression is created which is true if at least one of the logical expressions log_exp is true. The join is false only if all logical expressions are also false.


Notes

  • The operator OR is a weaker join than NOT and AND is a stronger join than EQUIV.

  • The operator OR implements a logical OR join. Negating a join of this type using NOT is the same as using a NOR join (Not OR). It is true if all expressions are false.

Example

Check whether the local time is within one of two intervals. The language elements AND are not Boolean operators in this case, but belong to the relational operator BETWEEN.

IF sy-timlo BETWEEN '080000' AND '120000' OR 
   sy-timlo BETWEEN '130000' AND '170000'. 
  ... 
ENDIF.