Jump to the post that solved this thread.
Solved: 4 Years, 8 Months, 1 Week ago Multiple units in if statement
#1
Solved: 4 Years, 8 Months, 1 Week ago
Straight forward,

<if $post['usergroup'] == 4 then>

I need more usergroups to be effected by this if statement. Like usergroup 21 and 69 for an example. How to add more than one usergroup?

Thanks o/
Reply
#2
Solved: 4 Years, 8 Months, 1 Week ago
You can probably do:

 <if in_array($post['usergroup'], array(4,21,69)) then>

I don't use the PHP conditionals plugin but have seen in the past it allows regular PHP functions so give it a go Smile
MyReactions - All Plugins

Can you still feel the butterflies?

Free never tasted like pudding.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)