Modifying this PHP snippet: Show this only to users that belong to role X, AND does not belong to role Y
<p>I´ve got this PHP snippet that allows me to show the tabs only to authenticated users.
How do I modify this to show only if it does belong to that role, but does NOT belong to role X?</p>

<pre><code>&lt;?php global $user; 
if (is_array($user-&gt;roles) &amp;&amp; in_array('authenticated user', $user-&gt;roles)) {?&gt; 
&lt;?php if ($tabs): ?&gt;
          &lt;div id="content-tabs" class=""&gt;&lt;?php print $tabs; ?&gt;&lt;/div&gt;&lt;!-- /#content-tabs --&gt;
        &lt;?php endif; ?&gt;
&lt;?php } ?&gt;  
</code></pre>

<p>I know that maybe it should contain something like an <strong>elseif</strong>, and the negative <strong>!</strong> sign. But how do I do that?
Thanks for your help!!</p>

<p>Rosamunda</p>
