I have been searching and couldn't find exactly what I am looking for. I am new to this so I apologize if this has been asked elsewhere.
I am putting together a Visualizer and need to apply an even and odd class to each iteration of the content. I am trying to place a conditional statement with the modulus as seen below. I believe my syntax is off, but could use some help figuring out where I am wrong. Thank you!
{% if ({{destinationNo | modulo:2}} != 0) %}
<div class="menuItem odd">
<div class="menuPic">
{{image}}
</div>
<div class="opaqueBox menuDescription">
<h4 id="destination">DESTINATION No. {{destinationNo}}</h4>
<h2 class="formTitleDark">{{name}}</h2>
<p class="b1RegularDark">{{itemDescription}}</p>
<a href="" class="borderButton">VIEW {{mENUTYPESTARTERENTREEORDESSERT}}</a>
</div>
</div>
{% else %}
<div class="menuItem even">
<div class="menuPic">
{{image}}
</div>
<div class="opaqueBox menuDescription">
<h4 id="destination">DESTINATION No. {{destinationNo}}</h4>
<h2 class="formTitleDark">{{name}}</h2>
<p class="b1RegularDark">{{itemDescription}}</p>
<a href="" class="borderButton">VIEW {{mENUTYPESTARTERENTREEORDESSERT}}</a>
</div>
</div>
{% endif %}