Exemplo n.º 1
0
        private static Tuple<bool, bool> GetBooleanicOperatorParameters(ScriptProcessor processor, SObject left, SObject right)
        {
            bool boolLeft, boolRight;

            if (left is SBool)
                boolLeft = ((SBool)left).Value;
            else
                boolLeft = left.ToBool(processor).Value;

            if (right is SBool)
                boolRight = ((SBool)right).Value;
            else
                boolRight = right.ToBool(processor).Value;

            return new Tuple<bool, bool>(boolLeft, boolRight);
        }
Exemplo n.º 2
0
 internal static string NotOperator(ScriptProcessor processor, SObject obj)
 {
     return SBool.ConvertToScriptString(!obj.ToBool(processor).Value);
 }