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