Ah ok, sorry I thought that folks who knew more than me would get where I was going, lol. So I am building a custom navigation menu where we show users only the boards they have access to see. Originally Lithium built this out for us, and we have the following to define the roles:
<!-- Roles for navigation menu-->
<#assign user_has_role = "none" />
<#list restadmin("/users/id/${user.id?c}/roles").roles.role as role>
<#if role.name?? && ((role.name == "Customer"))>
<#assign user_has_role = "customer" />
<#break />
<#elseif role.name?? && ((role.name == "Registered User"))>
<#assign user_has_role = "registered" />
</#if>
</#list>
<!-- Roles for navigation menu ends -->
So then, when I want to make the menu section for the user, it looks something like this:
<#if user_has_role == "registered" >
<li><a class="chevron-before" href="t5/Kb-name/tkb-p/kb_name1">KB Example 1</a></li>
<#elseif user_has_role == "customer" >
<li><a class="chevron-before" href="t5/Kb-name/tkb-p/kb_name1">KB Example 1</a></li>
<li><a class="chevron-before" href="t5/Kb-name2/tkb-p/kb_name2">KB Example 2</a></li>
</#if>
Now, I am aware I can combine the roles in the definitions to make one since they always see the same thing. But sometimes, I have people that see the same thing, but only in that instance.
So, I was looking for something like:
<#if user_has_role == "registered || customer" >
That it would show both. But the formatting on how to combine options there wasn't entirely intuitive to me, and I checked all the documentation I could but still didn't find anything :(
<#if user_has_role == "registered" > <-- Would like if I could say "If you are registered OR customer" here you can see this option.
<li><a class="chevron-before" href="t5/Kb-name/tkb-p/kb_name1">KB Example 1</a></li>
<#elseif user_has_role == "customer" >
<li><a class="chevron-before" href="t5/Kb-name/tkb-p/kb_name1">KB Example 1</a></li>
<li><a class="chevron-before" href="t5/Kb-name2/tkb-p/kb_name2">KB Example 2</a></li>
</#if>
HOpe that makes sense, and thanks in advance.