You guys should be quoting array keys, and using the full object-form variables in template conditionals.
Code:
<if condition="$foruminfo['forumid'] == $vbulletin->options['x'] and $vbulletin->options['x'] > 0">
But really... you should try to keep your application logic out of your templates and put this into your PHP or a plugin. If you do it this way, you can simplify it to something like this
Code:
<if condition="$show['whatever']">
This way, it will make much more sense when looking at it later.