Logical Operators
In the following lesson, you will be introduced to logical operators.
Types of Logical Operators
Logical operators are operators that perform logic operations such as the Logical AND and Logical OR. They take Boolean
type operands and yield Boolean
type results. Below is a list of the logical operators supported by Scala.
Operator | Name | Use |
---|---|---|
&& |
Logical AND | If both the operands are not false then the result is |