Sorry if this is a really obvious question, I'm new to Twig and Craft. I'm getting the following error: Unexpected tag name "offset" (expecting closing tag for the "if" tag defined near line 54)
Can anyone tell me what is wrong with my code?
<div class="box alt container">
{% set offset = true %}
{% if offset %}
<section class="feature left">
{% set caseHero = entry.heroImage.first() %}
<a href="#" class="image icon fa-signal"><img src='{{caseHero.url}}' alt="" /></a>
<div class="content">
<h3>{{entry.title}}</h3>
<p>{{entry.description}}</p>
</div>
</section>
{% offset = false %}
{% else %}
<section class="feature left">
{% set caseHero = entry.heroImage.first() %}
<a href="#" class="image icon fa-signal"><img src='{{caseHero.url}}' alt="" /></a>
<div class="content">
<h3>{{entry.title}}</h3>
<p>{{entry.description}}</p>
</div>
</section>
{% offset = true %}
{% endif %}