Relational Expressions (Comparisons)
Relational expressions are comparative expressions that compare two other expressions/values with a
specific operator. They evaluate to true
if the condition of the operator is true, for
example <
(less than) with 1 < 5
, and evaluate to
false
if the condition is false, for example >
(greater than) with
1 > 5
.
Such expressions are essential for conditional expressions that are used in statements such as: