How to do multiple ifs at the same time

Here this was answered a long time, but it also answers your question. That thread has examples on how to make the conditions as well as how the logic of the conditions works