PDA

View Full Version : Can I shorten these statements into one?


PennylessZ28
02-05-2006, 11:33 PM
Can I shorten this into one statement?

<if condition="is_member_of($userinfo, 2)"><if condition="is_member_of($userinfo, 6)"><if condition="is_member_of($userinfo, 5)"><if condition="is_member_of($userinfo, 7)"></if></if></if></if>

Becuase I want to show the item only if the person is a member of those 3 groups.

Guest190829
02-05-2006, 11:42 PM
Can I shorten this into one statement?

<if condition="is_member_of($userinfo, 2)"><if condition="is_member_of($userinfo, 6)"><if condition="is_member_of($userinfo, 5)"><if condition="is_member_of($userinfo, 7)"></if></if></if></if>

Becuase I want to show the item only if the person is a member of those 3 groups.


<if condition="is_member_of($userinfo, 2,6,5,7)"> </if>