- Reference >
- Operators >
- Aggregation Pipeline Operators >
- $lte (aggregation)
$lte (aggregation)¶
On this page
Definition¶
-
$lte
¶ Compares two values and returns:
true
when the first value is less than or equivalent to the second value.false
when the first value is greater than the second value.
The
$lte
compares both value and type, using the specified BSON comparison order for values of different types.$lte
has the following syntax:For more information on expressions, see Expressions.