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 you are using PHP, then suppose your list of numbers is an array

```
$list = array(1,3,5,7,9);

```

then for any element, you can use

```
if(in_array($element, $list)){
//Element present in list
}else{
//not present.
}

```

Function structure:

```
bool in_array ( mixed $needle , array $haystack [, bool $strict = FALSE ] )

```

Hope that helps.
For a list of integers:

```
static bool Found(List<int> arr, int val)
    {
        int result = default(int);
        if (result == val)
            result++;

        result = arr.FindIndex(delegate(int myVal)
        {
            return (myVal == val);
        });
        return (result > -1);
    }

```