packages/okam-build/lib/processor/template/transform/wx2swan/element.js
function bothForAndIFAttr(attrs) {
    if (!attrs) {
        return false;
    }

    let hasForAttr = FOR_DIRECTIVES.some(item => attrs[item]);
    let hasIf = CONDITION_DIRECTIVES.some(item => attrs[item]);

    return hasForAttr && hasIf;
}
function bothForAndIFAttr(attrs) {
    if (!attrs) {
        return false;
    }

    let hasForAttr = FOR_DIRECTIVES.some(item => attrs[item]);
    let hasIf = CONDITION_DIRECTIVES.some(item => attrs[item]);

    return hasForAttr && hasIf;
}
for if 并存判断

@param  {Object} attrs attrs
@return {boolean}