Might want to add if conditions to your article as well. I did a search through templates and found this:
To do an if condition in a template:
HTML Code:
<vb:if condition="$myvar['mytable']">
blah
<vb:else />
bleh
</vb:if>
Just replace $myvar with the variable you are using from your db query and mytable should be replaced with the row or column you are calling from the db.