Logical Operations

There are three subroutines which produce basic logical operations: