I have a condition like:
if (!(InRange1 || InRange2 || InRange3))
if (!InRange1 || !InRange2 || !InRange3)
You can use DeMorgan's Law for this.
What you have is equivalent to NOR.
!(A | B | C) is equivalent to
!A & !B & !C by DeMorgan's Law.
What you want is NAND, so
!(A && B && C). This is exactly equivalent to what you're looking for -
!A | !B | !C.