Using the &&, || and ^ operators