ABAP Keyword Documentation → ABAP - Reference → Program Flow → Expressions and Functions for Logical Expressions → log_exp - Logical Expressions → log_exp - Comparisons → log_exp - Relational Operators
log_exp - Relational Operators for All Data Types
The following table lists the relational operators for comparisons between operands (single operands or calculation expressions) of any data type.
EQ|Equal: True if the value of
operand1 matches the value of
NE|Not Equal: True if the value of
operand1 does not match the value of
LT|Less Than: True if the value of
operand1 is less than the value of
GT|Greater Than: True if the value of
operand1 is greater than the value of
LE|Less Equal: True if the value of
operand1 is less than or equal to the value of
GE|Greater Equal: True if the value of
operand1 is greater than or equal to the value of
The values are compared in accordance with the comparison rules.
- The operators
>=are equivalent to
GErespectively. We recommend that you use only one of these types of operator within a program. If in doubt, the operators with characters
>are considered to be more up to date, however they also overload these characters. Logical operators that consist of two letters, on the other hand, are better suited to other logical operators such as
CN, and so on that have no alternative forms.
- Due to the comparison rules, the size comparisons shown here are not suitable for determining the textual order of character-like data objects.
- The obsolete forms
=>may still appear outside of classes.