I'm pulling a lot of stuff out of a db and I plan on making if statements for every query possible. The query will include brand, type, and subtype. For this to work I have to have all possible if statements, so I have to have one that has nothing set, one that has brand set and everything else not set, one where brand and type are set while subtype isn't set and one where they're all set.
I think I can get the one where nothing is set and the one where everything is set, but the rest I'm clueless. How do you say that one thing is set while others aren't?