Quote:
Originally Posted by KirbyDE
So you don't want to have the code displayed to members that are not in usergroup ID 18, 19 or 20?
Then use this code
PHP Code:
if (!is_member_of($bbuserinfo, 18) AND !is_member_of($bbuserinfo, 19) AND !is_member_of($bbuserinfo, 20))
{
//Code I don't want paying members to see
}
Boolean Algebra:
NOT (x OR y OR z) = (NOT x) AND (NOT y) AND (NOT z) => DeMorgan's Theorems
|
Wow, I wasn't aware of that one. Then again, I haven't taken any logic classes yet. I figured using AND for all 3 would do a check to see if a user was in all 3 usergroups.