Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I created a macro that I want to use (hence import) into a template. I have looked at countless tutorials but none of them seem to help and my macro is not being imported.
I have an integer field that I am trying to get my template to display differently only if it contains "0". Though I cannot get it to output correctly.
{% if content.field_caves__max_level.0 != 0 %}
{{ content.field_caves__max_level.0 }} Max
{% endif %}