0

Basically i am putting some if elses for my array.

{if $array| count eq 0 || $array| count lt 10}
    <p>equal to 0, less than 10</p> 
{/if}
{if $array| count gte, ge 10}
    <p>greater than or equal to 10</p>
{else}
    <p>blah</p>
{/if}

Which is not working fine. So what could be the problem?

1
  • Tell us the problem. What do you mean by "not working fine"? Commented Mar 17, 2015 at 6:00

1 Answer 1

1

how about this. you can use gte or ge, but not both.

{if $array| count lt 10}
 <p>equal to 0, less than 10</p> 
{/if}
{if $array| count ge 10}
 <p>greater than or equal to 10</p>
{else}
 <p>blah</p>
{/if}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.