I am making a Ditto feed that has PHx within the Ditto template. The code for the template is below. Somehow, when the Ditto feed is viewed, if [+company+] has data, then nothing is displayed, if it is empty then [+pagetitle+] displays like it should. I have the same issue with [+ad_text+] and [+ad_image+].
[!Ditto? &parents=`[[GetChildIds? &docid=`3`]]`&randomize=`1` &total=`10` &hiddenFields=`company,ad_image,ad_text,pagetitle,introtext` &tpl=`header` &showInMenuOnly=`1` &phx=`1` !]
<div>
<div class="left">
[+phx:if=`[+company+]`:isnot=``:then:=`<h2>[+company+]</h2>`:else=`<h2>[+pagetitle+]</h2>`+]
<hr />
[+phx:if=`[+ad_text+]`:isnot=``:then:=`<p>[+ad_text+]</p>`:else=`<p>This member is new and has not updated this section yet,<br />please click below to see more information about this member.</p>`+]
<hr />
</div>
<div class="right">
[+phx:if=`[+ad_image+]`:isnot=``:then=`<img class="right" src="[+ad_image+]" alt="[+pagetitle+]" title="[+pagetitle+]" width="400" height="145" />`:else=`<img class="right" src="[+logo+]" alt="[+pagetitle+]" title="[+pagetitle+]" width="400" height="145" />`+]
</div>
</div>
Try changing "then:=" to "then="
That worked, I feel dumb now, I think I just spent way too many hours in front of a computer. Thanks BobRay.