<vb:if condition="THIS_SCRIPT != 'showthread' OR !in_array($GLOBALS['forumid'], array(1, 2))"> code here </vb:if>