PDA

View Full Version : if Conditional with variables


acanuck
01-05-2010, 03:35 PM
Hi guys

I'm trying to have a condition in my template that says: if {vb:raw foruminfo.store_slug} is empty print test however i can't seem to get it right... any idea why?

<vb:if condition="foruminfo.store_slug == ''">
test
</vb:if>

--------------- Added 1262713650 at 1262713650 ---------------

I figured it out :-)

<vb:if condition="$foruminfo['store_slug'] == ''">

--------------- Added 1262713719 at 1262713719 ---------------

I figured it out :-)

<vb:if condition="$foruminfo['store_slug'] == ''">
</vb:if>