oddson
Well-known member
conditional statements not equivalent - why? (solved)
I've not extracted this to a minimal example in case there's an obvious answer (obvious to others that is )
These two conditional statements don't seem to function the same.
if (v0D>>3 - v0>>3 != 0)
if (v0D>>3 != v0>>3)
The first one works as expected and resolves as true only when the two variables don't bit shift to the same value.
But the second one seems to be true when it should not be... is there something about the bit-shift operator that makes this so or some other thing I should know?
p.s - ... if no one can tell me I can try to set up a minimal script to demonstrate the behaviour
I've not extracted this to a minimal example in case there's an obvious answer (obvious to others that is )
These two conditional statements don't seem to function the same.
if (v0D>>3 - v0>>3 != 0)
if (v0D>>3 != v0>>3)
The first one works as expected and resolves as true only when the two variables don't bit shift to the same value.
But the second one seems to be true when it should not be... is there something about the bit-shift operator that makes this so or some other thing I should know?
p.s - ... if no one can tell me I can try to set up a minimal script to demonstrate the behaviour
Last edited: