Well, you probably want the else before the forum part, something like:
PHP Code:
<if condition="THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'adv_index'">
$advertcode
<else />
<if condition="in_array($foruminfo[forumid], array(1,2))"/>
$newadvertcode
</if>
<if condition="in_array($foruminfo[forumid], array(3,4,5,6,7,8,9,10))"/>
$anotheradvertcode
</if>
</if>
You know better than I what the exact conditional would be for your forums, so just tweak it until it reads right for you.