Compares two values and returns:
truewhen the first value is less than or equivalent to the second value.
falsewhen the first value is greater than the second value.
$ltehas the following syntax:
For more information on expressions, see Expressions.
inventory collection with the following documents:
The following operation uses the
$lte operator to determine if
qty is less than or equal to
The operation returns the following results: