Try/catch blocks
Introduction
Understanding 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
Conclusion
Last updated
Was this helpful?
