Code:
<vb:if condition="$my_php_var"> your HMTL </vb:if>
or
Code:
<vb:if condition="$my_php_var == 'my condition' "> your HMTL </vb:if>
where == can be any standard PHP comparator. The $my_php_var can be either a variable or an array so becomes $my_php_var['key'] and so on.
To insert variables into VB4 you need to ensure the variables are registered for the template you wish to use them in. Read this article here for how to do it. Took me a while to get used to the system but now it all makes sense
Article:
https://vborg.vbsupport.ru/showthread.php?t=228078