public void Format(StringBuilder builder, bool logic = true) { if (logic) { builder.Append($" {Logic.Format()} "); } builder.Append($"{((Group & QueryGroup.Begin) != 0 ? "(" : "")}{FormatName ?? Name} {Comparer.Format()} {FormatValue()}{((Group & QueryGroup.End) != 0 ? ")" : "")}"); }