I know I'm late, but variables may work better than arguments if you want
to keep the filter separate.
\define check_feature() [getindex<feature>trim[]match[Y]]
<$let
feature={{!!current_chosen_feature}}
has_feature=<<check_feature>>
<ul>
<$list filter="[tag[system]filter<has_feature>]" variable="sys">
<li> <$link to=<<sys>>> <<sys>> </$link> </li>
</$list>
</ul>
</$let>
On Thursday, December 16, 2021 at 8:06:14 PM UTC-5 [email protected]
wrote:
> CarloGgi,
>
> On Wed, Dec 15, 2021 at 2:02 PM CarloGgi <[email protected]> wrote:
>
>> \define check_feature(feature) [getindex[$feature$]trim[]match[Y]]
>>
>> <$set name="has_feature" value=<$macrocall $name='check_feature'
>> feature='IFTTT'/> >
>> <ul>
>> <$list filter="[tag[system]filter<has_feature>]" variable="sys">
>> <li> <$link to=<<sys>>> <<sys>> </$link> </li>
>> </$list>
>> </ul>
>>
>> </$set>
>>
> [...]
>
>> <$macrocall $name='check_feature' feature={{!!current_chosen_feature}}/>
>>
>> where of course field 'current_chosen_feature' wouldbe set by the
>> <$select> widget.
>>
>
> Filter operators can use transclusions for parameters. That should help
> with this case. Something like this (untested):
>
>
> <$list filter="[tag[system]]
> :filter[getindex{!!current_chosen_feature}trim[]match[Y]]" variable="sys">
>
>
> See https://tiddlywiki.com/#Filter%20Parameter.
>
> Brian
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/0e22c86b-d6fc-4d7b-a3b3-b840f9a52ae1n%40googlegroups.com.