Thank you. The doc, at subfilter, does clearly states what filter does.
The examples fail to make clear of this distinction for subfilter. In fact,
they are rather not too much helping.
The first one is
[subfilter[one two three]addsuffix[!]]
producing
- one!
Sortsub applies a filter in turn to each input title separately. The docs
do mention this I believe. So the input to the filter each time is a single
title.
Subfilter applies a filter once with the input being a title list of all
input titles.
On Friday, April 30, 2021 at 10:53:52 AM UTC+2
Nestling, in such a way anyway, is something I had not thought about.
In fact, this is only a part of the pipeline. Can I get back a united
output afterwards? I'll experiment and if I'm at loss, I'll post again.
A question remains for me: Why is "split + last" apparently working on so
Thank you Mark! This is a clever trick. Definitely worth remembering.
Le jeudi 29 avril 2021 à 23:51:53 UTC+2, Mark S. a écrit :
> It's often the case that we need two nested listwidgets to break down the
> results the way we want. In your example, everything is split by ^, but
> then it picks
Jean-Pierre;
I am not sure about your requirement, but try these
<$list filter="[enlist[a1^a2 b1^b2 c1^c2]]">
{{{ [split[^]first[]] }}}
<$list filter="[enlist[a1^a2 b1^b2 c1^c2]]">
<$list filter="[split[^]first[]]">
<$list filter="[enlist[a1^a2 b1^b2 c1^c3]split[^]]">
<$list
It's often the case that we need two nested listwidgets to break down the
results the way we want. In your example, everything is split by ^, but
then it picks the first item from the resulting list (a1). You could
instead split by space, send the result to an inner loop, and then split by
^
6 matches
Mail list logo