XenForo Looking for an <if> command for custom user field

D

DaveL

Guest
I've got a custom userfield, however if it's not filled out out shows the empty styling.
alliance.png

Looking for an <if> command to wrap the following in so the empty box doesn't show if this custom user field hasn't been completed.

Code:

Code:
<div style="background-color: blue; color: #FFF; padding: 2px; border: 2px solid #ff0000; border-radius: 5px 5px 5px 5px;">
    <center>{$user.Profile.custom_fields.AllianceName}</center>
</div>

Would really apprectiate any help.

Continue reading...