Does a || "or" operator prioritize an if statement?

I have an if statement if (gameObject.tag == "Friendly || gameObject.tag == "Player)

The enemies seem to be prioritizing the player over the friendly units. Is this the case and if so is there a way around it?

Neither are prioritised it just runs the code if either are true. It’s impossible to determine why the player could potentially be prioritised without the rest of the code.

Maybe you should try with a if/elseif statement to make sure the problem is not there?
Also I advise you to use the CompareTag() function since it’s more optimized and faster than a simple gameObject.tag == “”.