PDA

View Full Version : if condition display signature...


Winterworks
11-23-2008, 06:49 PM
In postbit, we have this code...

<if condition="$post['signature']">
<!-- sig -->
<div><fieldset><legend>Signature</legend>
$post[signature]
</fieldset></div>
<!-- / sig -->
</if>

I want it so that if you have a signature, it the fieldset still shows up, but inside, instead of displaying "$post[signature]", I want it to display "This User Has No Signature"

How do I do this?

Can someone show me code?

Lynne
11-23-2008, 07:04 PM
<if condition="$post['signature']">
<!-- sig -->
<div><fieldset><legend>Signature</legend>
$post[signature]
</fieldset></div>
<!-- / sig -->
<else />
<div><fieldset><legend>Signature</legend>
This User Has No Signature
</fieldset></div>
</if>

or
<if condition="$post['signature']">
<!-- sig -->
<div><fieldset><legend>Signature</legend>
$post[signature]
</fieldset></div>
<!-- / sig -->
<else />
<div>
This User Has No Signature
</div>
</if>

Winterworks
11-23-2008, 07:05 PM
Thanks Lynne :)

You're so helpful.