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); }
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)); }
internal static string NotOperator(ScriptProcessor processor, SObject obj) { return(SBool.ConvertToScriptString(!obj.ToBool(processor).Value)); }
internal static string NotOperator(ScriptProcessor processor, SObject obj) { return SBool.ConvertToScriptString(!obj.ToBool(processor).Value); }