Showing a little something depending on the results of a massive something

14 views
Skip to first unread message

Charlie Veniot

unread,
Jun 10, 2023, 5:36:29 PM6/10/23
to TiddlyWiki
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.

Charlie Veniot

unread,
Jun 10, 2023, 7:37:38 PM6/10/23
to TiddlyWiki
Some details (screenshots) related to the related functional and interface changes in BASIC Anywhere Machine:

Reply all
Reply to author
Forward
0 new messages