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

Combine two conditionals?


Well-known member

I have this code
<xen:if is="{$user.user_group_id} == 3 AND {$user.user_group_id} == 6">
    <div class="userRank modMag"></div>
What I want to achieve with this is a double user group conditional. If a user is in the usergroup 3 and usergroup 6, then he should get the class "modMag" (for a rank image). However it didn't work. I have also this code
<xen:if is="{$user.user_group_id} == 3">
    <div class="userRank mod"></div>
This code works instead of the above one. Is there a special conditional for secondary usergroups?

EDIT: Nevermind, I just found this resource: http://xenforo.com/community/resources/user-group-badges-per-usergroup.588/
Going to try it :)