Truthiness - Using Liquid to determine if a field is empty or blank
{% if context.page.metadata.is_homepage == false %}
output content.
{% else %}
output homepage content.
{% endif %}
{% if context.page.metadata.is_homepage == blank %}
{% comment %}output content.{% endcomment %}
{% else %}
{% comment %}output homepage content.{% endcomment %}
{% endif %}PreviousAccessing Data from the Global Context VariableNextAlternatives to Storing and Executing Liquid from Database Items
Last updated
Was this helpful?

