handle logical statements that are negated via a logicalOp