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

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

WBOY
WBOYOriginal
2016-06-13 11:21:32808browse

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


------解决方案--------------------
{math equation="(( x + y ) / z )" x=2 y=10 z=2}
Statement:
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