How do I write an IF equation in an array of another function

For example the function..

=QUARTILE(array,quart)

I want = QUARTILE(IF(something),quartile 1)

I don't want the IF True, IF FALSE parts of the IF function.

Thanks.