Multiple tag checks in one if statement?

How can I set to check multiple tags in one if statement if its possible? Any methods I try just throw errors.
(Trying to set layers for projectiles to hit and not hit when they explode and don’t want to make redundant statements)

So these are different things… tags are strings, layers are integers, layermasks are (integer) bitfields.

What exactly are you doing / trying to do?

I have a weapon I made that when its set to be used as an explosive It will explode upon hitting its target doing damage, I want it to interact with most things but not with the weapon its fired out of and certain invisible colliders, I could just be dense and have forgotten that I can make actual layers as well.