I need help with my query:

When I send to the query a parameter with the value -1, I would like to filter with 'IN' statement, otherwise filter according the value.

I was trying to do something like this:

```
WHERE  (StatusId = CASE WHEN @StatusId = - 1 
        THEN 
        @StatusId IN (1, 2, 3) 
        ELSE 
        StatusId = @StatusId  END)

```

Thanks.