Try-catch blocks
What are try-catch blocks?
Use try-catch blocks
Example: Implement try-catch blocks
{% set data = "data exists" %}
{% try %}
{{ data }}
{% catch %}
{{ "data doesn't exist" }}
{% endtry %}Best practices for try-catch blocks
Last updated
Was this helpful?
