I have this code:
{if segment_1 != "slug1" || segment_1 != "slug2"}<h2>Text</h2>{/if}
For some reason this does not work with the second instruction after the OR operator. If I remove the OR operator and the following code it is fine ie.
{if segment_1 != "slug1"}<h2>Text</h2>{/if}
The OR operator seems to be the problem here. Can anyone shed some light on this?
{if segment_1 == "slug1|slug2"} instead of {if segment_1 == "slug1" OR segment_1 == "slug2"}
isn't correct, is that right?