It's just like regular arithmetic, except with 1 and 0 instead of real numbers.

|| is like addition, && is like multiplication, and not does not have a direct analogue.

So just as you would...