【发布时间】:2015-03-17 05:48:05
【问题描述】:
基本上我会为我的数组添加一些 if elses。
{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}
这不能正常工作。那么可能是什么问题呢?
【问题讨论】:
-
告诉我们问题。 “工作不正常”是什么意思?