1. Sitecore query

Query operators

You can use the following list of operators in Sitecore query expressions:

OperatorDescriptionExampleReturn Value
Combination//Products
+Addition6 + 410
-Subtraction6 – 42
*Multiplication6 * 424
divDivision8 div 42
=Equalityposition() = 3True if position() is 3, otherwise False.
!=Not equalposition() != 3False if position() is 3, otherwise True.
<Less thanposition() < 4True if position() is less than 4, otherwise False.
<=Less than or equal toposition() <= 4True if position() is less than or equal to 4, otherwise False.
>Greater thanposition() > 4True if position() is greater than 4, otherwise False.
>=Greater than or equal toposition() >= 4True if position() is greater than or equal to 4, otherwise False.
orLogical ORposition() = 3 or position() = 4True if position() is 3 or 4, otherwise False.
andLogical ANDposition() > 3 and position() < 7True if position() is greater than 3 and less than 7, otherwise False.
modModulus (remainder of division)5 mod 21
If you have suggestions for improving this article, let us know!