EdgeQL Tutorial

Operators

Subtopics

The are 3 logical operators in EdgeQL: AND, OR, and NOT. These only work on boolean values:

Input
Run
Output
Press the 'Run' button to evaluate the input

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:

Input
Run
Output
Press the 'Run' button to evaluate the input

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):

Input
Run
Output
Press the 'Run' button to evaluate the input
Input
Run
Output
Press the 'Run' button to evaluate the input
Input
Run
Output
Press the 'Run' button to evaluate the input