mercredi 16 novembre 2016

Using OR inside ternary operator

I want to make following condition but its wrong. What can be done to make it correct?

row["Total Serviceable Offers"].ToString() == "a" || "b" ? "0" : "c";

Can we have || inside ternary condition?

Aucun commentaire:

Enregistrer un commentaire