This shortcode allows you to display or hide content to users based on tags
[memb_switch]
Foo
[case any_tag=bar]
Has Bar Tag [memb_contact fields="FirstName"]
[case all_tags=122,102,123]
Has 122,102 and 103 [memb_contact fields="FirstName"]
[else]
Has Nothing. Is sad.
[/memb_switch]
In this example, “Foo” would not be displayed because there is no [case] test in front of it.
“Has Bar Tag” would be displayed only if the currently logged in user had the tag named “bar”.
“Has 122,102 and 103” would be displayed only if the user had all 3 tags 122, 102, and 123.
“Has Nothing. Is sad.” would only be displayed if all the previous tests were false.
any_tag: Checks if the user has any of the tags specified before displaying content. This attribute is required to evaluate the condition.
all_tags: Checks if the user has all the tags specified before displaying content. This attribute is required to evaluate the condition.









Welcome to Memberium!
We are very excited for you to be part of our family.
We would love to answer any questions that you have!
Please choose the best time for you to get in a call with us.
For Technical Support, you can contact us at https://keap.memberium.com/support/ or Email us at support@memberium.com.