The pattern is all about grabbing the results of a very complex process, and scanning those results to decide on whether or not to do something.
<$wikify name="codeIssuesCheck" text={{{ [[Code Issues Template]get[text]] }}} >
<$list variable="codeIssues" filter="[<codeIssuesCheck>search-replace:g:regexp[\n],[:NL:]split[:NL:]regexp[Declare sub]count[]!match[0]]">
''<<menuItemBtn "View Code Issues#️⃣prod">>''
</$list>
</$wikify>
The Code Issues Template cobbles together a report from a whole bunch of complex information. Very complex code that takes a lot of things into consideration, and no way to create a tidy little filter that just gets a count of issues for deciding whether or not to show the menu item.
I only want the “View Code Issues” menu to display if there are any “Declare sub” issues.