I have encountered what appears to be a problem with a Boolean operator I am using in a short routine. I have attached a pdf of the routine for anyone interested. The values for "TestLeft" and "TestRightIncorrect" should both be 3; however, the "TestRightIncorrect" value is 6. I have included a modified routine called "TestRightCorrect" that gives me the correct answer, but I do not think this modification should be required.
Any advice or guidance on this issue would be greatly appreciated!
Thanks!
Steve