We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. I encountered this weird issue that I don't seem to find anywhere being mentioned.
{% set test2 = 'text 2' %} {{ dump(test1) }} {{ test1 ? test1 : test2 }}
This does not render any text. If test1 was set, it would output test1, as expected.
This does output text 2: {{ test1 ?: test2 }}
text 2
Tried this on 1.17.1 as well. PHP twig renders as expected.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi. I encountered this weird issue that I don't seem to find anywhere being mentioned.
{% set test2 = 'text 2' %}
{{ dump(test1) }}
{{ test1 ? test1 : test2 }}
This does not render any text. If test1 was set, it would output test1, as expected.
This does output
text 2
:{{ test1 ?: test2 }}
Tried this on 1.17.1 as well.
PHP twig renders as expected.
The text was updated successfully, but these errors were encountered: