View Single Post
  #1  
Old 12-11-2009, 12:40 AM
 
nck-k nck-k is offline
 

Newbie
  
Join Date: Mar 2009
Posts: 8
 

Default Check if not logged in and $main is...

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?
__________________
x-cart gold - 4.1.x
Reply With Quote