PDA

View Full Version : vB Condition using AND


Black Snow
04-27-2015, 09:49 AM
What would be the best way of writing this?

<vb:if condition="THIS_SCRIPT == 'index'">
<vb:if condition="is_member_of($bbuserinfo, 2,3)">

or something like:
<vb:if condition="THIS_SCRIPT == 'index'" AND "is_member_of($bbuserinfo, 2,3)">

Not 100% sure how to write it like the second example. I thought there may be a better way than the top example.

Thanks

MarkFL
04-27-2015, 01:50 PM
I would write:

<vb:if condition="THIS_SCRIPT === 'index' AND is_member_of($bbuserinfo, 2,3)">

kh99
04-29-2015, 08:36 PM
Off topic posts removed. Let's get back to the question being asked.