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