Exemple #1
0
        public override object Evaluate(ISoqlEvaluateContext context)
        {
            object val1 = Left.Evaluate(context);

            if (val1 == null)
            {
                return(null);
            }

            bool bval1 = (bool)val1;

            if (!bval1)
            {
                return(false);
            }

            object val2 = Right.Evaluate(context);

            if (val2 == null)
            {
                return(null);
            }

            bool bval2 = (bool)val2;

            if (!bval2)
            {
                return(false);
            }

            return(true);
        }
        public override object Evaluate(ISoqlEvaluateContext context)
        {
            object val = par.Evaluate(context);

            if (val == null)
            {
                return(null);
            }

            return(!((bool)val));
        }
Exemple #3
0
        public override object Evaluate(ISoqlEvaluateContext context)
        {
            object val = condition.Evaluate(context);

            if (val == null)
            {
                return(null);
            }

            SoqlExpression expr = (bool)val ? ifTrue : ifFalse;

            if (expr == null)
            {
                return(null);
            }
            return(expr.Evaluate(context));
        }