how to check if a variable is not empty in the volt?
this code
{% if resources['mensagem'] is not empty %}
// some code
{% endif %}
doesn't work.
I get this:
Undefined variable: empty
Thanks
how to check if a variable is not empty in the volt?
this code
{% if resources['mensagem'] is not empty %}
// some code
{% endif %}
doesn't work.
I get this:
Undefined variable: empty
Thanks