So I am using a placeholder to check if a TV from my MIGX db has any values. This is my call
[[migxLoopCollection?
&packageName=`artwork`
&classname=`artWorks`
&where=`{"artist_resource_id":"[[*id]]"}`
&tpl=`@CODE:[[+exhibition_resource_id]]`
&outputSeparator=`||`
&toPlaceholder=`resource_ids`
]]
Sometimes even though there are no values I get results that look like this from the placeholder "|||||||||||" the amount of lines varies. If there are values in there the placeholder looks like this " 25||34||16"
Basically what I want to happen is that if the placeholder is empty or has more than three "|" together than it would do nothing. If it has anything else it executes the code. So this is what I tried:
[[+resource_ids:is=`%|||%`:or:is=``:then=``:else=`<li class="submenuSidebar hideMobile">
<a class="heading">Exhibitions</a>
<ul>
[[getResources?
&parents=`-1`
&resources=`[[+resource_ids:replace=`||==,`]]`
&tpl=`tpl_exhibition_link`
]]
</ul>
</li>`]]
But I'm not having any luck. Anyone have any idea as to why?