Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
Hi team,
Can any one help me how to check array count is odd or even using helper function?
Topics help categorize Community content and increase your ability to discover relevant content.
You can validate it on the following lines
{% let arrayCount = count(profile.productsInCart) %} {%#if arrayCount % 2 = 0 %} even {%else if arrayCount % 2 = 1 %} odd {%/if%}
Views
Likes
Replies