Heim  >  Artikel  >  Backend-Entwicklung  >  if条件不执行

if条件不执行

WBOY
WBOYOriginal
2016-06-20 12:35:021417Durchsuche


<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

不需要替换的。 重点是比较标签才需要替换
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn