if ($forum['forumid']==W OR ($forum['forumid']==X AND ($bbuserinfo['usergroupid']==Y OR $bbuserinfo['usergroupid']==Z))