public boolean effectiveBooleanValue(XPathContext context) throws XPathException {
NumericValue n = (NumericValue)operand.evaluateItem(context);
if (n.isNaN()) {
return (operator == Token.FNE);
}
int c = n.compareTo(comparand);
switch (operator) {
case Token.FEQ:
return c == 0;
case Token.FNE:
return c != 0;