The are 3 logical operators in EdgeQL: AND
, OR
, and
NOT
. These only work on boolean values:
However, there are other operators that produce a boolean
result, such as various equality and inequality comparison
operators: =
, !=
, >
, <
, >=
, <=
. These can be
combined with logical operators:
Note that it's not just numeric types that can be compared
to each other, but also all other scalar types as well as
arrays and tuples. However, both operands must be of the
same type in order to be compared (str
can be compared to
other str
, but not to int64
or a bool
):