"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class If extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['a', 'b'],
            o: ['a if b'],
        }, {}, system, _ids_1.ID_IF);
    }
    f({ a, b }, done) {
        // console.log('If', 'f')
        if (b === true) {
            done({ 'a if b': a });
        }
        else {
            done({ 'a if b': undefined });
        }
    }
}
exports.default = If;
//# sourceMappingURL=index.js.map