Jump to content
  • 0

Better use of " || " ?


Justn

Question

I am still new to c#. Is there a better way to use the " || "  or operator, and are you even supposed to use this for comparing more than 2 examples? ie:  if (ThingX ||  ThingY || ThingZ ||  ThingG)

 

* Not sure if this goes in this board or the c# board. *

Edited by Justn
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

×
×
  • Create New...