I think this is kinda what you want, but I don't know what the THIS_SCRIPT display is for vbadvanced (I don't have it on my site):
PHP Code:
<if condition="THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'vbadvanced'">
$advertcode
</if>
<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>
That's assuming there is no overlap in forumdisplay/vbadvanced and any of the forumids, or else you would nest the foruminfo conditional with the other depending on which one takes precedence.
(This isn't tested and I'm no expert, so some tweaking may be necessary.

)