Inheritance: SProtoObject
示例#1
0
        internal static string AndOperator(ScriptProcessor processor, SObject left, SObject right)
        {
            var bools = GetBooleanicOperatorParameters(processor, left, right);

            return(SBool.ConvertToScriptString(bools.Item1 && bools.Item2));
        }
示例#2
0
 internal static string TypeNotEqualsOperator(ScriptProcessor processor, SObject left, SObject right)
 {
     return(SBool.ConvertToScriptString(!ObjectComparer.StrictEquals(processor, left, right)));
 }
示例#3
0
        internal static string LargerOperator(ScriptProcessor processor, SObject left, SObject right)
        {
            var numbers = GetNumericOperatorParameters(processor, left, right);

            return(SBool.ConvertToScriptString(numbers.Item1 > numbers.Item2));
        }
示例#4
0
 internal static string NotOperator(ScriptProcessor processor, SObject obj)
 {
     return(SBool.ConvertToScriptString(!obj.ToBool(processor).Value));
 }