View Single Post
  #21 (permalink)  
Old 05-18-2006, 06:42 PM
anasugawa anasugawa is offline
Junior Member
 
Join Date: Apr 2006
Posts: 9
anasugawa is on a distinguished road
hello there guru,
thanx for your tutorials. i'm still grasping the concept of mql programming.

but i'm not so sure about the logical operations in page 6.

shouldn't it be that:

OR eg. A = B || C
--------------------
- A is true only if either B or C or both are true.
- A is false only if both B and C are false

EXOR eg. A = B ^ C
---------------------
- A is true if and only if either one are true
- A is false if both B and C are true
- A is false if both B and C are false

And aren't bitwise operation works like a mask? thus it works on bytes (i think)?

to say that it returns 0 makes it sound like a logic operation, while it's more than that.

for the expression A = B^C

if.. B is 10101010
if.. C is 01010101
so A is 11111111

other example

if.. B is 10101010
if.. C is 11111111
so A is 01010101

haven't coded for a long time... correct me if i'm wrong.
Reply With Quote