Home > Backend Development > PHP Tutorial > if条件不执行

if条件不执行

WBOY
Release: 2016-06-20 12:35:02
Original
1483 people have browsed it


<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>
Copy after login

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


回复讨论(解决方案)

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

  
        
            if条件不执行
        

    

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

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

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