1 < 10 && 5 < 10

As you can see from the above example, we have joined together two comparisons, 1< 10 and 5 < 10 by making use of the && logical operator.

The && logical operator simply says ‘and’ so we can read the above statement as follows: ‘if 1 is less than 10 and 5 is less than 10 then return TRUE.’ Both of the conditions must be met in order for it to return true, so the following statement would return FALSE.