How do I do a NOT clause in a Twig template similar to PHP's !
? Given sick
values of either true
or false
, I tried the following, but it throws an error.
{% if !sick %}
Kenny is NOT sick.
{% elseif dead %}
You killed Kenny! You bastard!!!
{% else %}
Kenny looks okay --- so far
{% endif %}