The only proper logic function that could return the correct results would be BITXOR. So, BITXOR(A,B) would be the answer.
Randy
>How do you simplify the following VFP expression?
>
>
>(A and not B) or (B and not A)
>
>
>(I wasn't sure whether I should place this in "Chatter | Puzzles", or in "VFP | Chatter...". Anyway, I know the answer to this one, but wanted to present it to the community, as a puzzle.)
>
>Hilmar.