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 - AND
Other versions: 7.31 | 7.40 | 7.54
Syntax
... log_exp1 AND log_exp2 AND log_exp3 ...
Effect
The joining of multiple logical expressions log_exp
using AND creates a new logical expression that is true when all logical
expressions log_exp are true. If one of the logical expressions is false, the join is also false.
Notes
- The operator
ANDis a weaker join thanNOTand stronger thanORandEQUIV.
- The operator
ANDimplements an AND join. UsingNOTto negate a join like this is the same as using a NAND join (Not AND). It is true if at least one expression is false.
- The Boolean operator
ANDshould not be confused with the additionANDof the relational operatorBETWEEN.
Example
Checks assignment to an interval, ignoring interval boundaries.
IF operand > limit1 AND operand < limit2 .
...
ENDIF.