Skip to content

Glossary: Kotlin Basics

block

Also written: blocks

The lines of code between `{` and `}`. An `if` runs its block only when its condition is true.

Where the book teaches it

Related terms

if / elseloop