User Manual
MCP Series 
Brushed DC Motor Controllers
MCP Series User Manual
141
OR
The OR operator is a logic comparison operator. It compares two conditions to make a single 
true or false statement. The OR operator will return a true if one or both conditions are true. 
If both conditions are false then a false is returned. The truth table belwo demonstrates all 
combinations:
Condition 1 Condition 2 Result
True True True
True False True
False True True
False False False
The OR operator is used in decision making commands such as IF..THEN, DO..WHILE and so 
on. It differs from the | operator which is used in binary math functions. Example of the OR 
operator:
if hour = 12 OR minute = 30 then ding
The conditional statement will check to see if either expression is true before returning a true 
and jumping to the ding label. If both of the expressions are false the label is skipped. The IF..
THEN only jumps to the label if the statement is true. 
XOR
The XOR operator is a logic comparison operator. It compares two conditions to make a single 
true or false statement. The XOR operator will return a true if one but not both conditions 
are true. If both conditions are true or false then a false is returned. The truth table below 
demonstrates all combinations:
Condition 1 Condition 2 Result
True True False
True False True
False True True
False False False
The XOR operator is used in decision making commands such as IF..THEN, DO..WHILE and so 
on. It differs from the ^ operator which is used in binary math functions. Example of the XOR 
operator:
if hour > 5 XOR hour = 5 then QuitTime
The conditional statement will check to see if either expression is true before returning a true 
and jumping to the quittime label. If both of the expressions are false or true the label is 
skipped. The IF..THEN only jumps to the label if the statement is true. 










