Michael Active member Oct 18, 2015 #1 Hi guys, I currently use this conditional: <xen:if is="{xen:helper ismemberof, $message, 19}"> If I wanted to include multiple usergroups in this conditional how would I format it? Thank you.
Hi guys, I currently use this conditional: <xen:if is="{xen:helper ismemberof, $message, 19}"> If I wanted to include multiple usergroups in this conditional how would I format it? Thank you.
P Paul B XenForo moderator Staff member Oct 18, 2015 #2 See the link to the guide in my signature. Upvote 0 Downvote
J James Well-known member Oct 18, 2015 #3 Just add more Usergroup IDs separated by commas. 19, 12, 8, 27,etc Upvote 0 Downvote
Michael Active member Oct 18, 2015 #4 I tried but it didnt appear to work, I used 19 like so: <xen:if is="{xen:helper ismemberof, $message, 18,19}"> but it doesnt seem to work for me. Upvote 0 Downvote
I tried but it didnt appear to work, I used 19 like so: <xen:if is="{xen:helper ismemberof, $message, 18,19}"> but it doesnt seem to work for me.
TPerry Well-known member Oct 19, 2015 #5 Michael said: I tried but it didnt appear to work, I used 19 like so: <xen:if is="{xen:helper ismemberof, $message, 18,19}"> but it doesnt seem to work for me. Click to expand... You need to place it in an array Refer to Brogan's conditional statement(s) resource. Upvote 0 Downvote
Michael said: I tried but it didnt appear to work, I used 19 like so: <xen:if is="{xen:helper ismemberof, $message, 18,19}"> but it doesnt seem to work for me. Click to expand... You need to place it in an array Refer to Brogan's conditional statement(s) resource.