Search
 
SCRIPT & CODE EXAMPLE
 

HTML

njk if

<!---- Nunjuck If ------------------------------------------------------>

{% if variable %}
  It is true
{% endif %}

<!------------------------------------------------------ Nunjuck If ---->
Comment

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 ---->
Comment

PREVIOUS NEXT
Code Example
Html :: vuejs conditional rendering paragraph not working 
Html :: cara membuat persegi di html 
Html :: decode html entities 
Html :: disable pdf download to not logged in users wordpress 
Html :: is it illegal to hunt polar bears 
Html :: table inside another table in html 
Html :: navbar html 
Html :: how to change text place in html 
Html :: documentformat.openxml bold text 
Html :: html double line break 
Html :: TAKE PICTURES HTML 
Html :: get post java html 
Html :: pyscript 
Html :: bootstrap popup alert 
Html :: html month set default 
Html :: show image only on md screen 
Html :: html date input pick only date 
Html :: html canvas input add 
Html :: chessbase html 
Html :: onclick video popup in html 
Html :: data tables in html 
Html :: how to delete a html tag element in react 
Html :: titles html 
Html :: python script in html file 
Html :: html ol vs ul 
Html :: html description list 
Html :: html temple 
Html :: you may need an appropriate loader to handle this file type html 
Html :: blizard.js print 
Html :: Procent in html 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =