Solved
Odd or even
Hi team,
Can any one help me how to check array count is odd or even using helper function?
Hi team,
Can any one help me how to check array count is odd or even using helper function?
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%}Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.