This is odd. I’m using the following phx conditional statement within a chuck:
[+phx:if=`[+SoldOut+]`:is=`Yes`:then=`<span class="listings-date">Sold Out</span>`:else=`<span class="listings-date">Tickets: [+GigPrice+] + bf adv</span>`+]
The tv SoldOut is a check box with the value of Yes - no widgets being used. This should - I believe - work fine, but it doesn’t. Regardless of the SoldOut tvs value I always get the else content displayed. However, if I also insert that same tv placeholder outside of the phx statement, anywhere within the html, like this say:
[+phx:if=`[+SoldOut+]`:is=`Yes`:then=`<span class="listings-date">Sold Out</span>`:else=`<span class="listings-date">Tickets: [+GigPrice+] + bf adv</span>`+]
[+SoldOut+]
The conditional statement is evaluated fine - allbeit with the extra output after it. The chuck itself includes another phx statements which is doing something similar with another tv and it’s working fine.
Is this a bug or have I made another schoolboy error?
Any help much appreciated.
Cheers