UnsolvedCoding
Technical User
For some reason I can't get a comparison to work on more than one item.
I have to determine if a number is even and if its not notify the user. The problem is that for whatever reason this simply doesn't work.
Several different things have been tried but all of them fail unless they are by themselves.
Examples of success:
if A <> 0 Then do something
if A <> 2 Then do something
Examples of failure:
if A <> 0 Or A <> 2 Or A <> 4 Or A <> 6 Or A <> 8 Then do something
if A <> (0 Or 2 Or 4 Or 6 Or 8) Then do something
if A <> (0,2,4,6,8) Then do something
if A <> (Or(0,2,4,6,8)) Then do something
I have to determine if a number is even and if its not notify the user. The problem is that for whatever reason this simply doesn't work.
Several different things have been tried but all of them fail unless they are by themselves.
Examples of success:
if A <> 0 Then do something
if A <> 2 Then do something
Examples of failure:
if A <> 0 Or A <> 2 Or A <> 4 Or A <> 6 Or A <> 8 Then do something
if A <> (0 Or 2 Or 4 Or 6 Or 8) Then do something
if A <> (0,2,4,6,8) Then do something
if A <> (Or(0,2,4,6,8)) Then do something