Skip to content

Instantly share code, notes, and snippets.

@newtone
Created February 22, 2022 13:27
Show Gist options
  • Save newtone/90071d93440eb9427dc17e58b6c7a773 to your computer and use it in GitHub Desktop.
Save newtone/90071d93440eb9427dc17e58b6c7a773 to your computer and use it in GitHub Desktop.
{% if node.field_checkbox['#items'].value == '1' %}
<div class="only added when there are values">
{{ content.field_name }}
</div>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment