X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   whats wrong with this code? (https://forum.x-cart.com/showthread.php?t=4022)

Tony 08-17-2003 10:55 AM

whats wrong with this code?
 
Code:

{if $usertype eq "C"}
{else}
{if $login eq "" }
{ include file="auth.tpl" }
{else}
{ include file="authbox.tpl" }
{/if}


Tony 08-17-2003 10:57 AM

should it look like this?
 
Code:

{if $usertype eq "C"}
{ include file="auth.tpl" }
{else}
{if $login eq "" }
{ include file="authbox.tpl" }
{/if}


jpsowin 08-17-2003 02:45 PM

Syntax wise, your not closing your {if} tag.
There might be other problems depending on what you're trying to do.
I'm not sure why you are putting the other {if} tag inside the else either...

Mad 08-17-2003 07:47 PM

If I'm wrong, someone please correct me. This is (I think) the correct syntax:
Code:

{if $usertype eq "C"}
{if $login eq "" }
{ include file="auth.tpl" }
{else}
{ include file="authbox.tpl" }
{/if}
{/if}


Code:

{if $usertype eq "C"}
{ include file="auth.tpl" }
{elseif $login eq "" }
{ include file="authbox.tpl" }
{/if}



All times are GMT -8. The time now is 07:24 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.