Home > Backend Development > PHP Tutorial > smarty的模板中能写优先级吗?解决思路

smarty的模板中能写优先级吗?解决思路

WBOY
Release: 2016-06-13 12:48:24
Original
1250 people have browsed it

smarty的模板中能写优先级吗?
举例{wf:($i-1)/2 eq 0}
我想在模板中先进行加法再进行除法,但是模板不支持(),应该怎么写啊?


------解决方案--------------------
{math equation="(( x + y ) / z )" x=2 y=10 z=2}
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template