MyBB Community Forums

Full Version: MyBB Template Conditionals "OR"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use http://mybbhacks.zingaburga.com/showthread.php?tid=464

Here is my template code:

<if $mybb->user['usergroup'] == 4 then>
<div id="mod"><div class="tab_white">
<p class="bold"><h2>Moderate {$formattedname}</h2></p>
{$modoptions}
{$adminoptions}
</div>
</div></if>

I want to use an "OR", so the moderation tab displays for both group 4 and 14.

So,
<if $mybb->user['usergroup'] == 4 OR 14 then> SHOW THIS </if>

But that doesn't work.
Help?
<if $mybb->user['usergroup'] == 4 OR $mybb->user['usergroup'] == 14 then> SHOW THIS </if>
Thank you, Faviouz!
It worked.