There are quite a few basic bool operations (as you have them in microcontrollers and stuff like that).
AND will return true if both are true. OR will return true if one of the inputs is true. XOR will return true if neither of the inputs is true or both are but not if only one of them is true and a few more.
If you want to check if one is true and one is false use a NOT node. That basically just switches the input from true to false and the other way around so you can use it for checks.
Here is a wikipedia article about it: Boolean algebra - Wikipedia
Cheers
EDIT: article is probably better to understand boolean arithmetic: http://www.allaboutcircuits.com/vol_4/chpt_7/2.html