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