DaveL
Well-known member
I've got a custom userfield, however if it's not filled out out shows the empty styling.
![alliance.webp alliance.webp](https://xenforo.com/community/data/attachments/266/266791-c125379c1f0c776b316b73818e0fc837.jpg?hash=wSU3nB8Md2)
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.
Would really apprectiate any help.
![alliance.webp alliance.webp](https://xenforo.com/community/data/attachments/266/266791-c125379c1f0c776b316b73818e0fc837.jpg?hash=wSU3nB8Md2)
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:
<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.