Quote:
Originally Posted by T3MEDIA
I havea question how do you do a else statement with these conditionals?
if this is this way....
do this...
else
do this...
I only want it do do the second part if the first if false.
not sure how to do that.
|
You can use a "NOT" "(!)" conditional to simulate <else />.
Eg.
[[($bbuserinfo[userid]>0)]]
if visitor is a member
[[/($bbuserinfo[userid]>0)]]
[[(!($bbuserinfo[userid]>0))]]
if visitor is NOT a member
[[/(!($bbuserinfo[userid]>0))]]
Please note the location of ! and double paranthesis in the second clause
/(!( condition ))