Njk Else If

[Solved] Njk Else If | Scala - Code Explorer | yomemimo.com
Question : njk if

Answered by : kostas-minaidis

<!---- Nunjuck If ------------------------------------------------------>
{% if variable %} It is true
{% endif %}
<!------------------------------------------------------ Nunjuck If ---->

Source : https://mozilla.github.io/nunjucks/templating.html#if | Last Update : Mon, 17 Jan 22

Question : njk else if

Answered by : kostas-minaidis

<!---- Nunjucks if/elseif/else ----------------------------------------->
{% if hungry %} I am hungry
{% elif tired %} I am tired
{% else %} I am good!
{% endif %}
<!----------------------------------------- Nunjucks if/elseif/else ---->

Source : https://mozilla.github.io/nunjucks/templating.html#if | Last Update : Sun, 23 Jan 22

Answers related to njk else if

Code Explorer Popular Question For Scala