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 :: html unicode audio 
Html :: how to pan in mac preview 
Html :: Uncaught TypeError: CanvasRenderingContext2D.drawImage: Argument 1 could not be converted to any of: HTMLImageElement, SVGImageElement, HTMLCanvasElement, HTMLVideoElement, OffscreenCanvas, ImageBitmap 
Html :: how to set a max length wtform 
Html :: how to display gif when button clicked html css 
Html :: best meta tags 
Html :: sample html code for homepage 
Html :: bootstrap hide show toggle collapse 
Html :: get checkbox value in div TAG 
Html :: html personal website template 
Html :: sndl stock 
Html :: all codes of html 
Html :: spin wheel game html code 
Html :: https://stackoverflow.com/questions/47961310/how-to-stack-multiple-images-in-bootstrap-4-carousel?rq=1 
Css :: reset a tag css 
Css :: css center elment screen 
Css :: how to center placeholdr text 
Css :: css fixed center vertical 
Css :: absolute vertical position css 
Css :: css text vertical direction 
Css :: gradient text 
Css :: font awesome after css 
Css :: css select all elements except last css 
Css :: css hover to disable 
Css :: boxshadow in css 
Css :: striped tables css 
Css :: css background half one color the other half another color 
Css :: use text-align to justify the paragraph style 
Css :: span wrap html 
Css :: css backdrop-filter 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =