Surf the waves of boolean logic, dude.
Learn the basics of boolean logic, the foundation of all logical reasoning.