-
Book Overview & Buying
-
Table Of Contents
Learning Cypher
By :
The operators are grouped by category. Most of them return a null value if any operand has a null value. Anyway, there are some exceptions. So, for each operator, the behavior in case of a null value operand is specified.
Comparison operators are binary operators that return a Boolean or a null value as results. They are mostly used in the WHERE clause (see Chapter 2, Filter, Aggregate, and Combine Results, for details) to filter data according to a condition, although they can be used in the RETURN clause as well.
In Cypher, comparison operators can be grouped in two classes: ordering operators and equality operators.
Ordering operators are used to compare values (usually property values or literals). They are as follows:
|
Operator |
Description |
|---|---|
|
|
Less than |
|
|
Less than or equal to |
|
|
Greater than |
|
|
Greater than or equal to |
Let's see an example using one of these operators. This query looks for all books published in...
Change the font size
Change margin width
Change background colour