PDA

View Full Version : How to merge two <if condition> in one


sadiq6210
03-22-2012, 03:23 PM
I want to display the adv. banners only in forumdisplay & showthread

I have two conditions

<vb:if condition="THIS_SCRIPT=='forumdisplay'">
+
<vb:if condition="THIS_SCRIPT=='showthread'">

How to merge it in one?

I tried this:

<vb:if condition="THIS_SCRIPT=='forumdisplay' || 'showthread'">

But it is not working

cellarius
03-22-2012, 03:36 PM
Try
<vb:if condition="THIS_SCRIPT=='forumdisplay' || THIS_SCRIPT=='showthread'">

Like in PHP (basically, it is PHP) you need full condition pairs.

sadiq6210
03-22-2012, 03:49 PM
This is working perfect

Thanks brother .. got it :up:

__________

You must 'Like' someone else's post before liking any more by cellarius. !