I'd like to get the value of an element by key within an if statement.
Example:
works:
{{ example[5] }}
doesn't work:
{% if example2 is example[5] %} something ... {% endif %}
Exception thrown:
Unexpected token "punctuation" of value "[" ("end of statement block" expected)
Thank you very much
Kind regards
==.isis used for some special cases, likenull,definedoreven. - Maerlyn