On this page本页内容
$lt
¶Compares two values and returns:比较两个值并返回:
true
when the first value is less than the second value.true
。false
when the first value is greater than or equivalent to the second value.false
。The $lt
compares both value and type, using the specified BSON comparison order for values of different types.$lt
使用不同类型的值的指定BSON比较顺序来比较值和类型。
$lt
has the following syntax:语法如下所示:
For more information on expressions, see Expressions.有关表达式的详细信息,请参阅表达式。