class OperatorIf extends OperatorBase {
    public OperatorIf(String name) {
        this.name = name;
    }

    public OperatorIf(String aliasName, String name, String errorInfo) {
        this.name = name;
        this.aliasName = aliasName;
        this.errorInfo = errorInfo;
    }

    @Override
    public OperateData executeInner(InstructionSetContext parent, ArraySwap list) throws Exception {<FILL_FUNCTION_BODY>}
}

        if (list.length < 2) {
            throw new QLException("\"" + this.aliasName + "\"操作至少要两个操作数");
        }
        Object obj = list.get(0).getObject(parent);
        if (obj == null) {
            String msg = "\"" + this.aliasName + "\"的判断条件不能为空";
            throw new QLException(msg);
        } else if (!(obj instanceof Boolean)) {
            String msg = "\"" + this.aliasName + "\"的判断条件 必须是 Boolean,不能是：";
            throw new QLException(msg + obj.getClass().getName());
        } else {
            if ((Boolean)obj) {
                return list.get(1);
            } else {
                if (list.length == 3) {
                    return list.get(2);
                }
            }
            return null;
        }
    
<methods>public non-sealed void <init>() ,public com.ql.util.express.OperateData execute(com.ql.util.express.InstructionSetContext, com.ql.util.express.ArraySwap, List<java.lang.String>) throws java.lang.Exception,public abstract com.ql.util.express.OperateData executeInner(com.ql.util.express.InstructionSetContext, com.ql.util.express.ArraySwap) throws java.lang.Exception,public java.lang.String getAliasName() ,public java.lang.String getErrorInfo() ,public java.lang.String getName() ,public java.lang.String[] getOperateDataAnnotation() ,public java.lang.String[] getOperateDataDesc() ,public boolean isPrecise() ,public void setAliasName(java.lang.String) ,public void setErrorInfo(java.lang.String) ,public void setName(java.lang.String) ,public void setPrecise(boolean) ,public java.lang.Object[] toObjectList(com.ql.util.express.InstructionSetContext, com.ql.util.express.ArraySwap) throws java.lang.Exception,public java.lang.String toString() <variables>protected java.lang.String aliasName,protected java.lang.String errorInfo,protected boolean isPrecise,protected java.lang.String name,protected java.lang.String[] operateDataAnnotation,protected java.lang.String[] operateDataDesc