Boolean

Kotlin offers a Boolean type, with two values: true and false. These work pretty much as they do in other programming languages. For example, we will see how to use Boolean values for if expressions later in the book.

The typical sorts of Boolean operators that you may be used to from other programming languages are available to us:


Prev Table of Contents Next

This book is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.