Any easier way to write this if statement?
if (value==1 || value==2)
For example... in SQL you can say where value in (1,2) instead of where value=1 or value=2.
where value in (1,2)
where value=1 or value=2
I'm looking for something that would work with any basic type... string, int, etc.