Is possible to make an if statement in twig syntax and depending of the result close the html tag in a way or another. For example:
<button name="button" class="btn btn-warning"
{% if someCondition == false %}
> {#if is false close the button tag#}
<i class="fa fa-gift"></i><strong> Welcome<br />Present</strong>
{% else %}
disabled="disabled">{#if is true disable the button tag and then close#}
<i class="fa fa-gift"></i> Welcome<br />Present
{% endif %}
</button>
Thanks in advance.
-UPDATE-
Sorry I made a silly mistake, I was doing the right thing but in the wrong place that's why it did not reflected on my site. Thanks anyway (: