Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

njk else if

<!---- Nunjucks if/elseif/else ----------------------------------------->
{% if hungry %}
  I am hungry
{% elif tired %}
  I am tired
{% else %}
  I am good!
{% endif %}
<!----------------------------------------- Nunjucks if/elseif/else ---->
Source by mozilla.github.io #
 
PREVIOUS NEXT
Tagged: #njk
ADD COMMENT
Topic
Name
2+2 =