return (!value) && otherVal;
return value == otherVal || (!value) && otherVal;
	public boolean compareTo(Collator collator, int operator, AtomicValue other) throws XPathException {		if (Type.subTypeOf(other.getType(), Type.BOOLEAN)) {			boolean otherVal = ((BooleanValue) other).getValue();			switch (operator) {				case Constants.EQ :					return value == otherVal;				case Constants.NEQ :					return value != otherVal;				case Constants.LT:					return (!value) && otherVal;				case Constants.LTEQ:					return (!value) && otherVal;				case Constants.GT:					return value && (!otherVal);				case Constants.GTEQ:					return value && (!otherVal);				default :					throw new XPathException("Type error: cannot apply this operator to a boolean value");			}		}		throw new XPathException("Type error: cannot convert operand to boolean");	}