if条件不执行

WBOY
WBOYOriginal
2016-06-20 12:35:021485browse


<foreach name="haha" item="pp">                <if condition="({$pp.id}==1) && ({$pp.pos}==1) && ({$pp.poss}==1)"  >                                  <img  src="{$pp.path}{$pp.name}" alt="if条件不执行" >                                       </foreach>

if条件没有用,循环输出了所有图片,而且我在img后面加提示语法错误


回复讨论(解决方案)

TP框架?condition里面&&要换成and

  
        
            if条件不执行
        

    

这是正确的。我已经私聊给你了

TP框架?condition里面&&要换成and

不需要替换的。 重点是比较标签才需要替换
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