I have the following code:
{exp:switchee variable="{exp:stash:get name='custom_sidebar_text'}/{exp:stash:get_list name='related_articles'}/{exp:stash:get_list name='related_events'}" parse="inward"}
{case value="//"}{/case} {!-- Ignore no value --}
{case default="Yes"}
<aside class="{exp:stash:get name='sidebar_class'} {exp:stash:get name='sidebar_shifts_up'} {exp:stash:get name='page_color' random}">
{!-- A bunch of markup here. --}
</aside>
{/case}
{/exp:switchee}
If I understand correctly, the first case should only apply if all three of the variables are empty, while the second case should apply if any one, two or all three of the variables contain something. However, in practice, if the first variable is empty, no markup is rendered, and the fact that one or both of the second and third variables have information in them is ignored completely.
I tried using value="''/''/''"
in the first case, but that did not work, as it resulted in the second (default) case always being rendered, even when all three variables are empty.
Maybe exp:stash:get_list
isn’t the proper way to test whether a stash list is empty? I haven’t found an alternate way of testing it, though.