I have a header snippet that includes a "Made in USA" image on it. Well the client now wants the image removed on a couple product pages. I setup an advanced conditional to check for those pages using the third url segment. It worked if I kept the conditional simple, but as soon as I added an "OR" it stopped working. I thought it was probably a parse order issue, so I installed the Croxton If/Else plugin. Implemented that and I still have the same problem. Any ideas?
Doesn't Work...
{if segment_3!="product1" OR segment_3!="product2"}
<img src="/images/styles/madeinusa.png" class="madeinusa"/>
{/if}
Doesn't Work...
{exp:ifelse parse="inward"}
{if segment_3!='product1' OR segment_3!='product2"}
<img src="/images/styles/madeinusa.png" class="madeinusa"/>
{/if}
{/exp:ifelse}
Doesn't Work...
{exp:ifelse parse="inward"}
{if segment_3!="product1"}
<img src="/images/styles/madeinusa.png" class="madeinusa"/>
{if:elseif segment_3!="product2"}
<img src="/images/styles/madeinusa.png" class="madeinusa"/>
{/if}
{/exp:ifelse}
Works...
{if segment_3!="product1"}
<img src="/images/styles/madeinusa.png" class="madeinusa"/>
{/if}
AND
notOR
. I'd also add space before and after your conditional operators to prevent any potential parsing bugs.