Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example .liquid display pattern for calculated values

Code Block
{% assign imageMetadata = outerData.data.imageMetadata %}
{% assign validExtension = ".webp" %}
{% assign fileExtensionLowercase = outerData.data.imageMetadata.fileExtension | downcase %}

{% if outerData.data.imageMetadata.horizontalResolution == 72 and outerData.data.imageMetadata.verticalResolution == 72 and fileExtensionLowercase == validExtension %}
  true
{% else %}
  false
{% endif %}

...