The eq and ne seen here are value comparison operators.
这里的eq和ne都是值比较运算符。
However, all the logical and comparison operators consistently return the value 1 for true.
然而,所有逻辑和比较运算符都全部返回值1,表示真。
You can use value comparison operators for inequality with any type of data that has an order, such as the time-oriented types.
不等值比较运算符可用于任何有序的数据类型,比如和时间有关的类型。
Notice that the codepoints-to-string example also uses two of the new XPath value comparison operators: lt (less than) and gt (greater than).
请注意,codepoints-to-string的例子还用到了两个新的XPath值比较运算符:lt(小于)和gt(大于)。
The new value comparison operators will report an error if either operand in the comparison contains more than one value, so using them expedites detection of the error.
如果比较的一个操作数包含多个值,新的值比较运算符将报告错误,因此使用这些运算符可以迅速有效地检测错误。
The logical operators have lower precedence than the individual comparison operators, which makes sense because the comparison has to be evaluated before the logical operator can be evaluated.
逻辑运算符的优先级低于单独的比较运算符,这一点意义重大,因为必须先计算比较运算符,然后才能计算逻辑运算符。
The logical operators have lower precedence than the individual comparison operators, which makes sense because the comparison has to be evaluated before the logical operator can be evaluated.
逻辑运算符的优先级低于单独的比较运算符,这一点意义重大,因为必须先计算比较运算符,然后才能计算逻辑运算符。
应用推荐