private static bool ValidateExpression(string expression, Node node) { return String.IsNullOrWhiteSpace(expression) || node.Evaluate<bool>(expression); }
private static bool ValidateCompare(Node node, string compareType, string against) { var @operator = GetCompareOperator(compareType); return @operator == null || String.IsNullOrWhiteSpace(against) || node.Evaluate<bool>("value " + @operator + "(" + against + ")"); }