KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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 . I'm looking for something that would work with any basic type... string, int, etc.
Tags (comma-separated)
Save Edits
Cancel