PDA

View Full Version : Simple if statement won't work


robertpro2a
07-27-2008, 09:59 PM
I can't figure it out....

If user is registered, show User CP button. If not, show register button...?

<if condition="$show['member']">

<a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/usercp.gif" border="0" alt="User CP" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" />

<else/>

<a href="register.php"><img src="$stylevar[imgdir_misc]/register.gif" border="0" alt="User CP" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" />


</if>

Lynne
07-27-2008, 10:39 PM
<else/> should be <else /> See if that makes a difference.

robertpro2a
07-27-2008, 10:55 PM
Lynne,
Thanks a lot! Works like a charm.

Robert