> For the complete documentation index, see [llms.txt](https://george-jen.gitbook.io/data-science-and-apache-spark/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://george-jen.gitbook.io/data-science-and-apache-spark/block-statement.md).

# Block statement

A block statement is a statement block that contains multiple lines of statement, enclosed in curly brackets

```
println({
val x = 1 + 1
x + 1
}) // 3
```
