<if condition="!is_member_of($bbuserinfo, 1) AND in_array($thread[forumid], array(4,2,3))">//code</if>