Multiple conditions in template

Wonder how to realise something like below. All my values actually map one to one. Except for 14 - which maps to 0 and is so outside the range

    {% if trigger.to_state.state | int < 14 %}
      14
    {% else %}
    {{ trigger.to_state.state }}

That should work just like you have it if you and a {%endif%}