摘要: eq相等,ne、neq不相等,gt大于,lt小于,gte、ge大于等于,lte、le小于等于,not非,mod求模。is[not]divby是否能被某数整除,is[not]even是否为偶数,$ais[not]evenby$b即($a/$b)%2==0,is[not]odd是否为奇,$aisnotoddby$b即($a/$b)%2!=0示例:equal/notequal/greaterthan/lessthan/lessthanorequal/greatthanorequal/后面的就不用说了Smarty中的if语句和php中的if语句一样灵活易用,并增加了几个特性以适宜模板引擎.if必须于/ 阅读全文
posted @ 2014-02-14 14:48 DaveZhou 阅读(805) 评论(0) 推荐(0) 编辑