public boolean CompareSuccess(Field f, Object compareValue, String compareFunction) {
        // switch(String) only in 1.7
        if(cfg.compareEqual.equals(compareFunction)) {
            return f.compare(compareValue);
        } else if(cfg.compareNotEqual.equals(compareFunction)) {
            return !f.compare(compareValue);
        } else if(cfg.compareGreater.equals(compareFunction)) {
            return f.compareGreater(compareValue);
        } else if(cfg.compareGreaterEqual.equals(compareFunction)) {
            return f.compare(compareValue) || f.compareGreater(compareValue);
        } else if(cfg.compareLower.equals(compareFunction)) {
            return f.compareLower(compareValue);
        } else if(cfg.compareLowerEqual.equals(compareFunction)) {
            return f.compare(compareValue) || f.compareLower(compareValue);
        }
        return false;
    }