Hi P_style,

Looks like you live pretty close to where the board is hosted.

Well, I think these links here should help point you in the right direction.

Truth Tables, XOR-XNOR, BOOLEAN is the sort of item you need to do this.

XOR() - Exclusive OR operation using bitwise AND
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB12&Number=82849

Bitwise operation help please
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB2&Number=108816

Bitwise Mathematical AND operation
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB1&Number=18222

Boolean functions
http://scitec.uwichill.edu.bb/cmp/online/P10F/rulesof.htm