type: chapter layout: multipage-overview title: Control Structures description: This page provides an introduction to Scala's control structures, including if/then/else, for loops, try/catch/finally, etc. partof: scala_book overview-name: Scala Book discourse: true num: 13 outof: 54 previous-page: command-line-io next-page: if-then-else-construct
Scala has the basic control structures you’d expect to find in a programming language, including:
- if/then/else
for
loops- try/catch/finally
It also has a few unique constructs, including:
match
expressionsfor
expressions
We’ll demonstrate these in the following lessons.