Twig Templating If statement (Unexpected tag name error)
It seems like you want to set offset to false after your first section.

To do this correctly you would need to use set like this:

{% set offset = false %}


Checkout the documentation to set a variable