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: 
```
if ((number >= 1) && (number <= 3))

```
In T-SQL you can use the IN operator:

```
select * from MyTable where ID in (1,2,3)

```

If you are using a collection there may be a contains operator for another way to do this.

In C# for another way that may be easier to add values:

```
    List<int> numbers = new List<int>(){1,2,3};
    if (numbers.Contains(number))

```