Dont you think AND / OR would be better. You could use if(), but the reasoning to use it doesn't make sense in this case. if(s) are better used for doing another operation based some column value. Like doing a complex math problems where you need to pass a different divider or multiplier based on a value found in a certain column, so as to return a different result based on the equation, not restrict the result like you are wanting to do here!
Yeah that would be better, for some reason I didn't think it would work like that. I ended up doing it a different way but next time I'll try it that way.