"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = __importDefault(require("assert"));
const debug_1 = require("../../../../debug");
const If_1 = __importDefault(require("../../../../system/f/control/If"));
const system_1 = require("../../../util/system");
const filter = new If_1.default(system_1.system);
filter.play();
false && (0, debug_1.watchUnitAndLog)(filter);
filter.push('a', 0);
filter.push('b', true);
assert_1.default.equal(filter.take('a if b'), 0);
filter.push('a', 0);
filter.push('b', false);
assert_1.default.equal(filter.take('a if b'), undefined);
filter.push('a', true);
filter.push('b', true);
assert_1.default.equal(filter.take('a if b'), true);
//# sourceMappingURL=If.js.map