iff(cond, x, y) {
        if (cond && cond.__id__) cond = cond[0]
        return cond ? x : y
    }
Returns x or y depending on the condition
@param {(boolean|TS)} cond - Condition
@param {*} x - Frist value
@param {*} y - Second value
@return {*}