• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Admin Template xf:if explanation

silence

Well-known member
#1
In the ban edit admin template, there is this snippit:
HTML:
        <xen:snippet>
            {xen:if {$bannedUser.user_reason}, '{xen:phrase reason}: <span class="muted">{$bannedUser.user_reason}</span>'}
            {xen:phrase ban_ends}: <span class="muted">{xen:if $bannedUser.end_date, {xen:datetime $bannedUser.end_date}, '{xen:phrase never}'}</span>
        </xen:snippet>
In the line here:
HTML:
{xen:if $bannedUser.end_date, {xen:datetime $bannedUser.end_date}, '{xen:phrase never}'}
I'm extremely confused as to how that exactly works. Is it checking if $bannedUser.end_date is true?
Could someone be generous enough to explain that, I feel dumb :(