Log in

View Full Version : Nested Conditionals?


maximux1
07-26-2006, 06:17 PM
Can you use nested conditionals? Like this?...

<if condition="$ssl == on">
<if "is_member_of($bbuserinfo, 55)">
<!--do nothing-->
<else />
<meta http-equiv="refresh" content="5;url=http://www.mydomain.com/subscribe.php">
</if>
</if>

Nested conditionals dont 'appear' to work, but I may just have something wrong here.

All im doing here is checking to see if user is in SSL environment (using plugin - global start) and verify the user is a member of usergroup 55 (subscriber group). If not a member of usergroup 55, send the user to the subscription page.

Can you do something like !$is_member_of($bbuserinfo,55) or how would you do it?

Thanks!
Max

I now see the error of my ways - left out "conditional=" in the nested conditional. All works as expected once corrected.