Skip to content

Glossary: Kotlin Basics

logical operators

Also written: &&, ||, !, and, or, not

`&&` (and) is true when both sides are true, `||` (or) when at least one is, and `!` (not) flips a Boolean. `&&` checks its right side only when the left is true.

Where the book teaches it

Related terms

Booleancomparison operators