Question: How can I check if a condition passes multiple values?

Example:

```
if(number == 1,2,3)

```

I know that commas don't work.

Answer: 
Since you specify no language I add a Python solution:

```
if number in [1, 2, 3]:
    pass

```
In Java you have objects that wrap primitive variables (Integer for int, Long for long, etc). if you look to compare values between a lot of complete numbers (ints), what you can do is initiate a bunch of Integer objects, stuff them inside an iterable such as an ArrayList, iterate over them and compare.

something like:

```
ArrayList<Integer> integers = new ArrayList<>();
integers.add(13);
integers.add(14);
integers.add(15);
integers.add(16);

int compareTo = 17;
boolean flag = false;
for (Integer in: integers) {
    if (compareTo==in) {
    // do stuff
    }
}

```

of course for a few values this may be a bit unwieldy, but if you want to compare against a lot of values, it'll work nicely.

Another option is to use java [Sets](http://docs.oracle.com/javase/7/docs/api/java/util/Set.html), you can place a lot of different values (the collection will sort your input, which is a plus) and then invoke the `.contains(Object)` method to locate equality.