Not In (Group)

Check if a user is not in a specific user group.


Example

We want to show a picture of delicious bacon if the user is not in the vegans group.

{{ user:not_in group="vegans" }}
    <img src="delicious-bacon.jpg" />
{{ /user:not_in }}

If the user is in the vegans group, the content between the tags simply won’t be rendered.


Parameters

group|groups

string

The groups(s) to check against. You may specify multiple groups by pipe separating them. eg. {{ user:not_in group="foo" }} or {{ user:not_in groups="foo|bar" }}

Last modified on September 21, 2016