Consider:

It seems to me that the second IF statement should be treated as a boolean

operation, just as the first one. Since i > 0 and j > 0, i and j are both

true so the result should be false. I also note that:

IF (i > 0) XOR (j > 0) THEN MSGBOX "true" ELSE MSGBOX "false" --> 'false

Can anyone shed some light on this inconsistancy? Did PowerBasic intend

for only the AND to be a boolean operation?

------------------

Code:

i = 4 j = 3 IF i AND j THEN MSGBOX "true" ELSE MSGBOX "false" 'true IF i XOR j THEN MSGBOX "true" ELSE MSGBOX "false" 'true

operation, just as the first one. Since i > 0 and j > 0, i and j are both

true so the result should be false. I also note that:

IF (i > 0) XOR (j > 0) THEN MSGBOX "true" ELSE MSGBOX "false" --> 'false

Can anyone shed some light on this inconsistancy? Did PowerBasic intend

for only the AND to be a boolean operation?

------------------

## Comment