UNPKG

azurite

Version:

An open source Azure Storage API compatible server

28 lines 918 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const BinaryOperatorNode_1 = tslib_1.__importDefault(require("./BinaryOperatorNode")); class NotEqualsNode extends BinaryOperatorNode_1.default { get name() { return `ne`; } evaluate(context) { const leftContent = this.left.evaluate(context); const rightContent = this.right.evaluate(context); if (leftContent[0].value !== undefined && rightContent[0].value !== undefined && (leftContent[0].value !== rightContent[0].value)) { if (leftContent[0].key !== undefined) { return leftContent; } else { return rightContent; } } else { return []; } } } exports.default = NotEqualsNode; //# sourceMappingURL=NotEqualsNode.js.map