Hi,
I am trying to create an if statement that will check if the visitor is not logged in and the page he is visiting not equals a static page or a help page, but i can't get it to work:
Code:
{if $login eq "" && ($main ne "pages" || $main ne "help")}
do something 1
{else}
do something 2
{/if}
I have tried several ways, but this codes looks like the logical one for me.
Can someone help me?