Question: I have this code:

```
field = string.Format(Str, value1, value2,
        found == true ? fieldName : "", found  == true ? "product" : "");

```

Is there a way to combine the two `found == true` ternary operation into a more succinct piece of code?

Answer: 
Stop comparing `found` to `true`. You want the condition on whether or not the item was `found`, not whether or not `found` is `true`:

```
found ? fieldName : string.Empty

```
Since `String.Format` takes a `params` array, the one major variation not yet suggested would be

```
field = string.Format(Str, found
                      ? new object[] {value1, value2, fieldName, "product"}
                      : new object[] {value1, value2, string.Empty, string.Empty});

```