using the logical operator && in a ternary expression to compare two Boolean statements