Using the logical operator && to let the machine make a choice based on two different expressions